[][src]Trait conv::TryInto

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

type Err: Error

The error type produced by a failed conversion.

Loading content...

Required methods

fn try_into(self) -> Result<Dst, Self::Err>

Convert the subject into the destination type.

Loading content...

Implementors

impl<Src, Dst> TryInto<Dst> for Src where
    Dst: TryFrom<Src>, 
[src]

type Err = Dst::Err

Loading content...