Trait parsell::ToStatic
[−]
[src]
pub trait ToStatic { type Static; }
A trait for data which can be saved to and restored from long-lived state.
The canonical example of this trait is Cow<'a,T>
which can be saved to
and restored from Cow<'static,T>
when T
is static.
Associated Types
type Static
Implementors
impl<'a, T: ?Sized> ToStatic for Cow<'a, T> where T: 'static + ToOwned
impl<T, U> ToStatic for (T, U) where T: ToStatic, U: ToStatic
impl<T> ToStatic for Option<T> where T: ToStatic
impl<T, E> ToStatic for Result<T, E> where T: ToStatic, E: ToStatic
impl<T> ToStatic for T where T: 'static + StaticMarker