Trait cast::From [] [src]

pub trait From<Src> {
    type Output;
    fn cast(Src) -> Self::Output;
}

The "cast from" operation

Associated Types

type Output

The result of the cast operation: either Self or Result<Self, Error>

Required Methods

fn cast(Src) -> Self::Output

Checked cast from Src to Self

Implementors