Struct heed_types::OwnedSlice
source · pub struct OwnedSlice<T>(_);Expand description
Describes a Vec of types that are totally owned (doesn’t
hold any reference to the original slice).
If you need to store a type that doesn’t depends on any
memory alignment and that can be big it is recommended
to use the UnalignedSlice.
The CowType is recommended for borrowed types (types that holds
references to the original slice).
Trait Implementations§
source§impl<'a, T: AnyBitPattern + NoUninit> BytesDecode<'a> for OwnedSlice<T>
impl<'a, T: AnyBitPattern + NoUninit> BytesDecode<'a> for OwnedSlice<T>
source§impl<'a, T: NoUninit> BytesEncode<'a> for OwnedSlice<T>
impl<'a, T: NoUninit> BytesEncode<'a> for OwnedSlice<T>
impl<T> Send for OwnedSlice<T>
impl<T> Sync for OwnedSlice<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for OwnedSlice<T>where T: RefUnwindSafe,
impl<T> Unpin for OwnedSlice<T>where T: Unpin,
impl<T> UnwindSafe for OwnedSlice<T>where T: UnwindSafe,
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