pub struct BytesEncoder<'sl> { /* private fields */ }Expand description
An encoder for a single byte slice.
Implementations§
Source§impl<'sl> BytesEncoder<'sl>
impl<'sl> BytesEncoder<'sl>
Sourcepub const fn without_length_prefix(sl: &'sl [u8]) -> Self
pub const fn without_length_prefix(sl: &'sl [u8]) -> Self
Constructs a byte encoder which encodes the given byte slice, with no length prefix.
Trait Implementations§
Auto Trait Implementations§
impl<'sl> Freeze for BytesEncoder<'sl>
impl<'sl> RefUnwindSafe for BytesEncoder<'sl>
impl<'sl> Send for BytesEncoder<'sl>
impl<'sl> Sync for BytesEncoder<'sl>
impl<'sl> Unpin for BytesEncoder<'sl>
impl<'sl> UnwindSafe for BytesEncoder<'sl>
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