Struct heed_types::UnalignedSlice
source · pub struct UnalignedSlice<T>(_);Expand description
Describes a type that is totally borrowed and doesn’t depends on any memory alignment.
If you need to store a type that does depend on memory alignment
and that can be big it is recommended to use the CowType.
Trait Implementations§
source§impl<'a, T: AnyBitPattern> BytesDecode<'a> for UnalignedSlice<T>
impl<'a, T: AnyBitPattern> BytesDecode<'a> for UnalignedSlice<T>
type DItem = &'a [T]
fn bytes_decode(bytes: &'a [u8]) -> Result<Self::DItem, BoxedError>
source§impl<'a, T: NoUninit> BytesEncode<'a> for UnalignedSlice<T>
impl<'a, T: NoUninit> BytesEncode<'a> for UnalignedSlice<T>
impl<T> Send for UnalignedSlice<T>
impl<T> Sync for UnalignedSlice<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for UnalignedSlice<T>where T: RefUnwindSafe,
impl<T> Unpin for UnalignedSlice<T>where T: Unpin,
impl<T> UnwindSafe for UnalignedSlice<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