Trait parsell::Upcast
[−]
[src]
pub trait Upcast<T: ?Sized> { fn upcast(self) -> T
where
Self: Sized; }
A trait for subtyping
Required Methods
Implementors
impl<'a, T: ?Sized> Upcast<Cow<'a, T>> for Cow<'static, T> where
T: ToOwned,impl<S1, S2, T1, T2> Upcast<(T1, T2)> for (S1, S2) where
S1: Upcast<T1>,
S2: Upcast<T2>,impl<S, T> Upcast<Option<T>> for Option<S> where
S: Upcast<T>,impl<S, T, D, E> Upcast<Result<T, E>> for Result<S, D> where
S: Upcast<T>,
D: Upcast<E>,impl<T> Upcast<T> for T where
T: StaticMarker,