[][src]Trait safecast::CastInto

pub trait CastInto<T> {
    pub fn cast_into(self) -> T;
}

Trait for defining a cast operation to some destination type T. Analogous to std::convert::Into. The inverse of CastFrom. Prefer implementing CastFrom over CastInto because implementing CastFrom automatically provides an implementation of CastInto.

Required methods

pub fn cast_into(self) -> T[src]

Loading content...

Implementors

impl<T, F: CastFrom<T>> CastInto<F> for T[src]

Loading content...