ExKcal.Recipe.total_nutrition

You're seeing just the function total_nutrition, go back to ExKcal.Recipe module for more information.
Link to this function

total_nutrition(recipe)

Specs

total_nutrition(t()) :: ExKcal.Product.t()

Calculate total nutritional value of the ExKcal.Products used in the ExKcal.Recipe. It returns kind of a special ExKcal.Product instance containing sum of all of the relevant fields, from all of the used Products.

Notes

  • It won't recalculate total fields, it will sum their values.