pub enum CowValue<'val, 'ty> {
Owned(OwnedValue<'ty>),
Ref(Value<'val, 'ty>),
}Variants§
Owned(OwnedValue<'ty>)
Ref(Value<'val, 'ty>)
Implementations§
Trait Implementations§
Source§impl<'val, 'ty> From<OwnedValue<'ty>> for CowValue<'val, 'ty>
impl<'val, 'ty> From<OwnedValue<'ty>> for CowValue<'val, 'ty>
Source§fn from(v: OwnedValue<'ty>) -> Self
fn from(v: OwnedValue<'ty>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl<'val, 'ty> !Freeze for CowValue<'val, 'ty>
impl<'val, 'ty> !RefUnwindSafe for CowValue<'val, 'ty>
impl<'val, 'ty> Send for CowValue<'val, 'ty>
impl<'val, 'ty> Sync for CowValue<'val, 'ty>
impl<'val, 'ty> Unpin for CowValue<'val, 'ty>
impl<'val, 'ty> !UnwindSafe for CowValue<'val, 'ty>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more