pub struct LittleEndian;Expand description
Little-endian ByteOrder marker.
Trait Implementations§
Source§impl Clone for LittleEndian
impl Clone for LittleEndian
Source§fn clone(&self) -> LittleEndian
fn clone(&self) -> LittleEndian
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LittleEndian
impl Debug for LittleEndian
Source§impl IntEncoding<LittleEndian> for FixInt
impl IntEncoding<LittleEndian> for FixInt
Source§const STATIC: bool = true
const STATIC: bool = true
Whether the encoded length for all integer types
T is constant and equal
to size_of::<T>(). Read moreSource§const ZERO_COPY: bool = true
const ZERO_COPY: bool = true
Whether the encoding format for integer types
T matches their in-memory representation. Read moreSource§fn encode_u16(val: u16, writer: impl Writer) -> WriteResult<()>
fn encode_u16(val: u16, writer: impl Writer) -> WriteResult<()>
Encode the given
u16 value and write it to the writer.Source§fn decode_u16<'de>(reader: impl Reader<'de>) -> ReadResult<u16>
fn decode_u16<'de>(reader: impl Reader<'de>) -> ReadResult<u16>
Decode a
u16 value from the reader.Source§fn encode_u32(val: u32, writer: impl Writer) -> WriteResult<()>
fn encode_u32(val: u32, writer: impl Writer) -> WriteResult<()>
Encode a
u32 value and write it to the writer.Source§fn decode_u32<'de>(reader: impl Reader<'de>) -> ReadResult<u32>
fn decode_u32<'de>(reader: impl Reader<'de>) -> ReadResult<u32>
Decode a
u32 value from the reader.Source§fn encode_u64(val: u64, writer: impl Writer) -> WriteResult<()>
fn encode_u64(val: u64, writer: impl Writer) -> WriteResult<()>
Encode a
u64 value and write it to the writer.Source§fn decode_u64<'de>(reader: impl Reader<'de>) -> ReadResult<u64>
fn decode_u64<'de>(reader: impl Reader<'de>) -> ReadResult<u64>
Decode a
u64 value from the reader.Source§fn encode_u128(val: u128, writer: impl Writer) -> WriteResult<()>
fn encode_u128(val: u128, writer: impl Writer) -> WriteResult<()>
Encode a
u128 value and write it to the writer.Source§fn decode_u128<'de>(reader: impl Reader<'de>) -> ReadResult<u128>
fn decode_u128<'de>(reader: impl Reader<'de>) -> ReadResult<u128>
Decode a
u128 value from the reader.Source§fn encode_i16(val: i16, writer: impl Writer) -> WriteResult<()>
fn encode_i16(val: i16, writer: impl Writer) -> WriteResult<()>
Encode a
i16 value and write it to the writer.Source§fn decode_i16<'de>(reader: impl Reader<'de>) -> ReadResult<i16>
fn decode_i16<'de>(reader: impl Reader<'de>) -> ReadResult<i16>
Decode a
i16 value from the reader.Source§fn encode_i32(val: i32, writer: impl Writer) -> WriteResult<()>
fn encode_i32(val: i32, writer: impl Writer) -> WriteResult<()>
Encode a
i32 value and write it to the writer.Source§fn decode_i32<'de>(reader: impl Reader<'de>) -> ReadResult<i32>
fn decode_i32<'de>(reader: impl Reader<'de>) -> ReadResult<i32>
Decode a
i32 value from the reader.Source§fn encode_i64(val: i64, writer: impl Writer) -> WriteResult<()>
fn encode_i64(val: i64, writer: impl Writer) -> WriteResult<()>
Encode a
i64 value and write it to the writer.Source§fn decode_i64<'de>(reader: impl Reader<'de>) -> ReadResult<i64>
fn decode_i64<'de>(reader: impl Reader<'de>) -> ReadResult<i64>
Decode a
i64 value from the reader.Source§fn encode_i128(val: i128, writer: impl Writer) -> WriteResult<()>
fn encode_i128(val: i128, writer: impl Writer) -> WriteResult<()>
Encode a
i128 value and write it to the writer.Source§fn decode_i128<'de>(reader: impl Reader<'de>) -> ReadResult<i128>
fn decode_i128<'de>(reader: impl Reader<'de>) -> ReadResult<i128>
Decode a
i128 value from the reader.Source§impl PartialEq for LittleEndian
impl PartialEq for LittleEndian
impl Copy for LittleEndian
impl Eq for LittleEndian
impl PlatformEndian for LittleEndian
Available on little-endian only.
impl StructuralPartialEq for LittleEndian
Auto Trait Implementations§
impl Freeze for LittleEndian
impl RefUnwindSafe for LittleEndian
impl Send for LittleEndian
impl Sync for LittleEndian
impl Unpin for LittleEndian
impl UnwindSafe for LittleEndian
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