Trait parsell::Downcast
[−]
[src]
pub trait Downcast<T: ?Sized> { fn downcast(self) -> T
where
Self: Sized; }
A trait for subtyping where conversion downwards is possible (e.g. Cow<'a,str>
can be converted to Cow<'static,str>
).
Required Methods
Implementors
impl<'a, T: ?Sized> Downcast<Cow<'static, T>> for Cow<'a, T> where
T: ToOwned,impl<S1, S2, T1, T2> Downcast<(T1, T2)> for (S1, S2) where
S1: Downcast<T1>,
S2: Downcast<T2>,impl<S, T> Downcast<Option<T>> for Option<S> where
S: Downcast<T>,impl<S, T, D, E> Downcast<Result<T, E>> for Result<S, D> where
S: Downcast<T>,
D: Downcast<E>,impl<T> Downcast<T> for T where
T: StaticMarker,