pub struct Fixed;Trait Implementations§
Source§impl ByteEncoding for Fixed
impl ByteEncoding for Fixed
const BITS_PER_BYTE: usize = 8
Source§fn validate(_: Word, _: usize) -> bool
fn validate(_: Word, _: usize) -> bool
Returns if the
word of up to 8 characters valid. Only bytes bytes are included
(the remaining are zeroed). bytes must be at least 1.impl Copy for Fixed
Source§impl Encoding for Fixed
impl Encoding for Fixed
fn is_fixed(self) -> bool
fn zigzag(self) -> bool
fn write_u64<const BITS: usize>(self, writer: &mut impl Write, v: u64)
fn read_u64<const BITS: usize>(self, reader: &mut impl Read) -> Result<u64>
fn write_u128<const BITS: usize>(self, writer: &mut impl Write, v: u128)
fn read_u128<const BITS: usize>(self, reader: &mut impl Read) -> Result<u128>
fn write_f32(self, writer: &mut impl Write, v: f32)
fn read_f32(self, reader: &mut impl Read) -> Result<f32>
fn write_f64(self, writer: &mut impl Write, v: f64)
fn read_f64(self, reader: &mut impl Read) -> Result<f64>
fn write_str(self, writer: &mut impl Write, v: &str)
fn read_str(self, reader: &mut impl Read) -> Result<&str>
fn write_byte_str(self, writer: &mut impl Write, v: &[u8])
fn read_byte_str(self, reader: &mut impl Read) -> Result<&[u8]>
fn read_bytes(self, reader: &mut impl Read, len: NonZeroUsize) -> Result<&[u8]>
Auto Trait Implementations§
impl Freeze for Fixed
impl RefUnwindSafe for Fixed
impl Send for Fixed
impl Sync for Fixed
impl Unpin for Fixed
impl UnsafeUnpin for Fixed
impl UnwindSafe for Fixed
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