#[non_exhaustive]pub struct Fixed<B = BigEndian> { /* private fields */ }Expand description
A fixed-length integer encoding which encodes something to a little-endian encoding.
Trait Implementations§
Source§impl<B> IntegerEncoding for Fixed<B>where
B: ByteOrder,
impl<B> IntegerEncoding for Fixed<B>where
B: ByteOrder,
Source§fn encode_unsigned<C, W, T>(
cx: &mut C,
writer: W,
value: T,
) -> Result<(), <C as Context>::Error>
fn encode_unsigned<C, W, T>( cx: &mut C, writer: W, value: T, ) -> Result<(), <C as Context>::Error>
Governs how unsigned integers are encoded into a Writer.
Source§fn decode_unsigned<'de, C, R, T>(
cx: &mut C,
reader: R,
) -> Result<T, <C as Context>::Error>
fn decode_unsigned<'de, C, R, T>( cx: &mut C, reader: R, ) -> Result<T, <C as Context>::Error>
Governs how unsigned integers are decoded from a Reader.
Source§impl<B> Ord for Fixed<B>where
B: Ord,
impl<B> Ord for Fixed<B>where
B: Ord,
Source§impl<B> PartialOrd for Fixed<B>where
B: PartialOrd,
impl<B> PartialOrd for Fixed<B>where
B: PartialOrd,
impl<B> Copy for Fixed<B>where
B: Copy,
impl<B> Eq for Fixed<B>where
B: Eq,
impl<B> StructuralPartialEq for Fixed<B>
Auto Trait Implementations§
impl<B> Freeze for Fixed<B>
impl<B> RefUnwindSafe for Fixed<B>where
B: RefUnwindSafe,
impl<B> Send for Fixed<B>where
B: Send,
impl<B> Sync for Fixed<B>where
B: Sync,
impl<B> Unpin for Fixed<B>where
B: Unpin,
impl<B> UnwindSafe for Fixed<B>where
B: 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