TryFrom
Conversions that report failure instead of losing data.
TryFrom/try_into return a Result that is Err when a value doesn't fit the target type.
Examples
u8::try_from(300_i32)returns anErr, whileu8::try_from(200_i32)returnsOk(200).
See also