pub struct FixedBytes<const N: usize, E = FixedBytesWriterError> { /* private fields */ }
Expand description
A fixed-size bytes storage which keeps track of how much has been initialized.
Implementations§
Source§impl<const N: usize, E> FixedBytes<N, E>
impl<const N: usize, E> FixedBytes<N, E>
Sourcepub fn into_bytes(self) -> Option<[u8; N]>
pub fn into_bytes(self) -> Option<[u8; N]>
Coerce into the underlying bytes if all of them have been initialized.
Trait Implementations§
Auto Trait Implementations§
impl<const N: usize, E> Freeze for FixedBytes<N, E>
impl<const N: usize, E> RefUnwindSafe for FixedBytes<N, E>where
E: RefUnwindSafe,
impl<const N: usize, E> Send for FixedBytes<N, E>where
E: Send,
impl<const N: usize, E> Sync for FixedBytes<N, E>where
E: Sync,
impl<const N: usize, E> Unpin for FixedBytes<N, E>where
E: Unpin,
impl<const N: usize, E> UnwindSafe for FixedBytes<N, E>where
E: 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