pub enum CowRepr<'a, A> {
View(ViewRepr<&'a A>),
Owned(OwnedRepr<A>),
}
Expand description
CowArray’s representation.
Don’t use this type directly—use the type alias
CowArray
for the array type!
Variants§
Implementations§
Trait Implementations§
source§impl<'a, A: 'a, B: 'a> RawDataSubst<B> for CowRepr<'a, A>
impl<'a, A: 'a, B: 'a> RawDataSubst<B> for CowRepr<'a, A>
impl<'a, A> Data for CowRepr<'a, A>
impl<'a, A> DataMut for CowRepr<'a, A>where A: Clone,
impl<'a, A> RawDataClone for CowRepr<'a, A>where A: Clone,
impl<'a, A> RawDataMut for CowRepr<'a, A>where A: Clone,
Auto Trait Implementations§
impl<'a, A> RefUnwindSafe for CowRepr<'a, A>where A: RefUnwindSafe,
impl<'a, A> Send for CowRepr<'a, A>where A: Send + Sync,
impl<'a, A> Sync for CowRepr<'a, A>where A: Sync,
impl<'a, A> Unpin for CowRepr<'a, A>
impl<'a, A> UnwindSafe for CowRepr<'a, A>where A: RefUnwindSafe,
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