Skip to main content

try_into

Function try_into 

Source
pub fn try_into<Dst: TryFrom<Src>, Src>(src: Src) -> Result<Dst>
Expand description

Converts a value with TryFrom and maps failure to an arithmetic error.

Successful conversions return the destination value unchanged. A failure records the source and destination type names and discards the original error.