Trait genet_abi::cast::Typed [−][src]
pub trait Typed { type Output: Into<Variant>; fn cast(&self, data: &ByteSlice) -> Result<Self::Output>; }
Typed cast trait.
Associated Types
Required Methods
Implementors
impl<T, I, R, F> Typed for Mapped<T, I, R, F> where
T: Typed<Output = I>,
I: Into<Variant>,
R: Into<Variant>,
F: Fn(I) -> R + Clone, type Output = R;impl<T, X> Typed for Ranged<T, Range<usize>> where
T: 'static + Typed<Output = X> + Clone,
X: Into<Variant>, type Output = X;impl<T, X> Typed for Ranged<T, RangeFrom<usize>> where
T: 'static + Typed<Output = X> + Clone,
X: Into<Variant>, type Output = X;impl<T, X> Typed for Ranged<T, RangeFull> where
T: 'static + Typed<Output = X> + Clone,
X: Into<Variant>, type Output = X;impl<T, X> Typed for Ranged<T, RangeInclusive<usize>> where
T: 'static + Typed<Output = X> + Clone,
X: Into<Variant>, type Output = X;impl<T, X> Typed for Ranged<T, RangeTo<usize>> where
T: 'static + Typed<Output = X> + Clone,
X: Into<Variant>, type Output = X;impl<T, X> Typed for Ranged<T, RangeToInclusive<usize>> where
T: 'static + Typed<Output = X> + Clone,
X: Into<Variant>, type Output = X;