Trait conv::TryInto [] [src]

pub trait TryInto<Dst> {
    type Err: Error;
    fn try_into(self) -> Result<Dst, Self::Err>;
}

This is the dual of TryFrom; see that trait for information.

Where possible, prefer using this trait over TryFrom for generic constraints, but prefer implementing TryFrom.

Associated Types

The error type produced by a failed conversion.

Required Methods

Convert the subject into the destination type.

Implementors