Enum static_cow::ChangeOrKeep
source · Expand description
An Idempotent implementation whose owning-ness is determined at runtime.
Variants§
Change(T)
A T that has not yet been transformed.
Keep(T::Owning)
A T::Owning which has already been transformed from a T.
Trait Implementations§
source§impl<'o, T> Idempotent<'o, T> for ChangeOrKeep<'o, T>where
T: 'o + IntoOwning<'o>,
T::Owning: ToOwning<'o, Owning = T::Owning>,
impl<'o, T> Idempotent<'o, T> for ChangeOrKeep<'o, T>where
T: 'o + IntoOwning<'o>,
T::Owning: ToOwning<'o, Owning = T::Owning>,
source§impl<'o, T> IntoOwning<'o> for ChangeOrKeep<'o, T>where
T: 'o + IntoOwning<'o>,
T::Owning: ToOwning<'o, Owning = T::Owning>,
impl<'o, T> IntoOwning<'o> for ChangeOrKeep<'o, T>where
T: 'o + IntoOwning<'o>,
T::Owning: ToOwning<'o, Owning = T::Owning>,
source§fn into_owning(self) -> Self::Owning
fn into_owning(self) -> Self::Owning
Converts an object which owns its contents into one which borrows them.