pub struct PackedI16<const N: usize>(/* private fields */);Expand description
Bounded signed 16-bit words encoded as little-endian bytes.
Unlike List<i16, N> or Vec<i16>, this uses a byte count and fixed-width
words instead of an element count and ZigZag varints. Switching a field
requires coordinated consumers. Small-magnitude values take more space.
Implementations§
Trait Implementations§
Source§impl<'de, const N: usize> Deserialize<'de> for PackedI16<N>
impl<'de, const N: usize> Deserialize<'de> for PackedI16<N>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl<const N: usize> Eq for PackedI16<N>
impl<const N: usize> StructuralPartialEq for PackedI16<N>
Auto Trait Implementations§
impl<const N: usize> Freeze for PackedI16<N>
impl<const N: usize> RefUnwindSafe for PackedI16<N>
impl<const N: usize> Send for PackedI16<N>
impl<const N: usize> Sync for PackedI16<N>
impl<const N: usize> Unpin for PackedI16<N>
impl<const N: usize> UnsafeUnpin for PackedI16<N>
impl<const N: usize> UnwindSafe for PackedI16<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