pub struct BincodeByteConverter<TByteConverter>(/* private fields */)
where
TByteConverter: ByteConverter + Serialize + DeserializeOwned;Trait Implementations§
Source§impl<TByteConverter> ByteConverter for BincodeByteConverter<TByteConverter>
impl<TByteConverter> ByteConverter for BincodeByteConverter<TByteConverter>
fn append_to_bytes( &self, bytes: &mut Vec<u8>, ) -> Result<(), Box<dyn Error + Send + Sync + 'static>>
fn extract_from_bytes<'a, TBytes: AsRef<[u8]>>(
bytes: &'a TBytes,
index: &mut usize,
) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>where
Self: Sized,
fn to_vec_bytes( &self, ) -> Result<Vec<u8>, Box<dyn Error + Send + Sync + 'static>>
fn to_vec_bytes_with_capacity( &self, capacity: usize, ) -> Result<Vec<u8>, Box<dyn Error + Send + Sync + 'static>>
fn clone_via_bytes(
&self,
) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>where
Self: Sized,
fn deserialize_from_bytes<'a, TBytes: AsRef<[u8]>>(
bytes: &'a TBytes,
) -> Result<Self, Box<dyn Error + Send + Sync + 'static>>where
Self: Sized,
fn cast_via_bytes<TByteConverter>(
&self,
) -> Result<TByteConverter, Box<dyn Error + Send + Sync + 'static>>where
TByteConverter: ByteConverter,
Auto Trait Implementations§
impl<TByteConverter> Freeze for BincodeByteConverter<TByteConverter>where
TByteConverter: Freeze,
impl<TByteConverter> RefUnwindSafe for BincodeByteConverter<TByteConverter>where
TByteConverter: RefUnwindSafe,
impl<TByteConverter> Send for BincodeByteConverter<TByteConverter>where
TByteConverter: Send,
impl<TByteConverter> Sync for BincodeByteConverter<TByteConverter>where
TByteConverter: Sync,
impl<TByteConverter> Unpin for BincodeByteConverter<TByteConverter>where
TByteConverter: Unpin,
impl<TByteConverter> UnwindSafe for BincodeByteConverter<TByteConverter>where
TByteConverter: 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