Struct heed_types::CowSlice
source · pub struct CowSlice<T>(_);Expand description
Describes a slice that must be memory aligned and will be reallocated if it is not.
A Cow type is returned to represent this behavior.
If you need to store a slice that doesn’t depends on any
memory alignment it is recommended to use the UnalignedSlice.
if you don’t want to be bored with the Cow type you can
use the OwnedSlice.
Trait Implementations§
source§impl<'a, T: AnyBitPattern + NoUninit> BytesDecode<'a> for CowSlice<T>
impl<'a, T: AnyBitPattern + NoUninit> BytesDecode<'a> for CowSlice<T>
source§impl<'a, T: NoUninit> BytesEncode<'a> for CowSlice<T>
impl<'a, T: NoUninit> BytesEncode<'a> for CowSlice<T>
impl<T> Send for CowSlice<T>
impl<T> Sync for CowSlice<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for CowSlice<T>where T: RefUnwindSafe,
impl<T> Unpin for CowSlice<T>where T: Unpin,
impl<T> UnwindSafe for CowSlice<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