turbofish
The ::<Type> that names a type after a name, as in parse::
The turbofish ::
Examples
"2.5".parse::<f64>()names the target type with::<f64>;let x: f64 = "2.5".parse().unwrap();says the same through an annotation.
See also
The ::<Type> that names a type after a name, as in parse::
The turbofish ::
Examples
"2.5".parse::<f64>() names the target type with ::<f64>; let x: f64 = "2.5".parse().unwrap(); says the same through an annotation.
See also