ExKcal.Carbs (ExKcal v0.0.8)

Carbohydrates split into subcategories.

Link to this section Summary

Types

Known SI prefixes.

t()

Different types of carbs.

Volume of substance and unit it is represented in.

Weight of substance and unit it is represented in.

Link to this section Types

Specs

si_prefix() ::
  :Y
  | :Z
  | :E
  | :P
  | :T
  | :G
  | :M
  | :k
  | :h
  | :da
  | :d
  | :c
  | :m
  | :μ
  | :n
  | :p
  | :f
  | :a
  | :z
  | :y

Known SI prefixes.

Specs

t() :: %ExKcal.Carbs{
  dietary_fiber: weight(),
  other: weight(),
  starch: weight(),
  sugars: weight(),
  total: weight()
}

Different types of carbs.

Specs

volume() :: {float(), :l | :dl | :ml} | {nil, :none}

Volume of substance and unit it is represented in.

Specs

weight() :: {float(), :kg | :g | :mg | :μg} | {nil, :none}

Weight of substance and unit it is represented in.

Link to this section Functions