Expand description
CowArray’s representation.
Don’t use this type directly—use the type alias
CowArray
for the array type!
Variants
View(ViewRepr<&'a A>)
Borrowed data.
Owned(OwnedRepr<A>)
Owned data.
Implementations
Trait Implementations
sourceimpl<'a, A> RawData for CowRepr<'a, A>
impl<'a, A> RawData for CowRepr<'a, A>
type Elem = A
type Elem = A
The array element type.
sourcefn __private__(&self) -> PrivateMarker
fn __private__(&self) -> PrivateMarker
This trait is private to implement; this method exists to make it impossible to implement outside the crate. Read more
sourceimpl<'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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more