Skip to main content

human_to_string

Function human_to_string 

Source
pub fn human_to_string(
    recipe: &Recipe,
    name: &str,
    scale: f64,
    converter: &Converter,
    style: Style,
) -> Result<String, Error>
Expand description

Render a recipe the way cook recipe prints it, into a String.

Convenience over human::print_human, which stays the primitive.