pub struct ArrayEncoder<const N: usize> { /* private fields */ }Expand description
An encoder for a single array.
Implementations§
Source§impl<const N: usize> ArrayEncoder<N>
impl<const N: usize> ArrayEncoder<N>
Sourcepub const fn without_length_prefix(arr: [u8; N]) -> Self
pub const fn without_length_prefix(arr: [u8; N]) -> Self
Constructs an encoder which encodes the array with no length prefix.
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for ArrayEncoder<N>
impl<const N: usize> RefUnwindSafe for ArrayEncoder<N>
impl<const N: usize> Send for ArrayEncoder<N>
impl<const N: usize> Sync for ArrayEncoder<N>
impl<const N: usize> Unpin for ArrayEncoder<N>
impl<const N: usize> UnwindSafe for ArrayEncoder<N>
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