pub struct Fixed<const N: usize>(pub usize);Expand description
Marker for fixed length.
A fixed length pads the input to the desired length. The deserialization will always return the fixed value and the full data.
Tuple Fields§
§0: usizeTrait Implementations§
Auto Trait Implementations§
impl<const N: usize> Freeze for Fixed<N>
impl<const N: usize> RefUnwindSafe for Fixed<N>
impl<const N: usize> Send for Fixed<N>
impl<const N: usize> Sync for Fixed<N>
impl<const N: usize> Unpin for Fixed<N>
impl<const N: usize> UnwindSafe for Fixed<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