pub struct BytesArraySerializer<const SIZE: usize>(/* private fields */);
Trait Implementations§
Source§impl<const SIZE: usize> BucketItemSerializer for BytesArraySerializer<SIZE>
impl<const SIZE: usize> BucketItemSerializer for BytesArraySerializer<SIZE>
type InputElementType<'a> = [u8; SIZE]
type ExtraData = ()
type ExtraDataBuffer = ()
type ReadBuffer = [u8; SIZE]
type ReadType<'a> = &'a [u8; SIZE]
fn write_to( &mut self, element: &Self::InputElementType<'_>, bucket: &mut Vec<u8>, _: &Self::ExtraData, _: &Self::ExtraDataBuffer, )
fn read_from<'a, S: Read>( &mut self, stream: S, read_buffer: &'a mut Self::ReadBuffer, _: &mut Self::ExtraDataBuffer, ) -> Option<Self::ReadType<'a>>
fn get_size(&self, element: &Self::InputElementType<'_>, _: &()) -> usize
Auto Trait Implementations§
impl<const SIZE: usize> Freeze for BytesArraySerializer<SIZE>
impl<const SIZE: usize> RefUnwindSafe for BytesArraySerializer<SIZE>
impl<const SIZE: usize> Send for BytesArraySerializer<SIZE>
impl<const SIZE: usize> Sync for BytesArraySerializer<SIZE>
impl<const SIZE: usize> Unpin for BytesArraySerializer<SIZE>
impl<const SIZE: usize> UnwindSafe for BytesArraySerializer<SIZE>
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more