pub struct ToBytesSerializer<T>(_, _, _)
where
T: ToBytes;
Implementations§
§impl<T> ToBytesSerializer<T>where
T: ToBytes,
impl<T> ToBytesSerializer<T>where T: ToBytes,
pub fn serialize<S>(
object: &T,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
pub fn serialize<S>( object: &T, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serializes a static-sized object as a byte array (without length encoding).
pub fn serialize_with_size_encoding<S>(
object: &T,
serializer: S
) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where
S: Serializer,
pub fn serialize_with_size_encoding<S>( object: &T, serializer: S ) -> Result<<S as Serializer>::Ok, <S as Serializer>::Error>where S: Serializer,
Serializes a dynamically-sized object as a byte array with length encoding.
Auto Trait Implementations§
impl<T> RefUnwindSafe for ToBytesSerializer<T>where T: RefUnwindSafe,
impl<T> Send for ToBytesSerializer<T>where T: Send,
impl<T> Sync for ToBytesSerializer<T>where T: Sync,
impl<T> Unpin for ToBytesSerializer<T>where T: Unpin,
impl<T> UnwindSafe for ToBytesSerializer<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