Trait num_traits::CastFrom [] [src]

pub trait CastFrom<T>: Sized {
    fn cast_from(x: T) -> Option<Self>;
}

Constructs Self from the other type via a conversion.

Required Methods

fn cast_from(x: T) -> Option<Self>

Constructs Self from the type T.

Implementors