pub struct HLAunsignedInteger32LE(pub u32);Expand description
HLAunsignedInteger32LE: 32-bit unsigned integer, little endian.
Tuple Fields§
§0: u32Implementations§
Trait Implementations§
Source§impl BasicData for HLAunsignedInteger32LE
impl BasicData for HLAunsignedInteger32LE
Source§impl Clone for HLAunsignedInteger32LE
impl Clone for HLAunsignedInteger32LE
impl Copy for HLAunsignedInteger32LE
Source§impl Debug for HLAunsignedInteger32LE
impl Debug for HLAunsignedInteger32LE
Source§impl Decode for HLAunsignedInteger32LE
impl Decode for HLAunsignedInteger32LE
Source§fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>
fn decode(reader: &mut ByteReader<'_>) -> Result<Self, DecoderError>
Skips the padding the octet boundary requires and decodes one value. Read more
Source§impl Default for HLAunsignedInteger32LE
impl Default for HLAunsignedInteger32LE
Source§impl Display for HLAunsignedInteger32LE
impl Display for HLAunsignedInteger32LE
Source§impl Encode for HLAunsignedInteger32LE
impl Encode for HLAunsignedInteger32LE
Source§const OCTET_BOUNDARY: usize = 4
const OCTET_BOUNDARY: usize = 4
Octet boundary of the datatype: its encoding starts at a multiple of this offset.
Source§fn encode(&self, writer: &mut ByteWriter<'_>)
fn encode(&self, writer: &mut ByteWriter<'_>)
Appends the encoding of
self, preceded by the padding its octet boundary requires.Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Length in octets of the encoding when it starts at an aligned offset.
Source§impl Enumerated for HLAunsignedInteger32LE
impl Enumerated for HLAunsignedInteger32LE
Source§type Representation = HLAunsignedInteger32LE
type Representation = HLAunsignedInteger32LE
Wire representation of the enumerators.
Source§fn to_representation(&self) -> Self
fn to_representation(&self) -> Self
The wire value of this enumerator.
Source§fn from_representation(representation: &Self) -> Option<Self>
fn from_representation(representation: &Self) -> Option<Self>
The enumerator with this wire value, if there is one.
impl Eq for HLAunsignedInteger32LE
Source§impl From<HLAunsignedInteger32LE> for u32
impl From<HLAunsignedInteger32LE> for u32
Source§fn from(value: HLAunsignedInteger32LE) -> Self
fn from(value: HLAunsignedInteger32LE) -> Self
Converts to this type from the input type.
Source§impl From<u32> for HLAunsignedInteger32LE
impl From<u32> for HLAunsignedInteger32LE
Source§impl Hash for HLAunsignedInteger32LE
impl Hash for HLAunsignedInteger32LE
Source§impl Ord for HLAunsignedInteger32LE
impl Ord for HLAunsignedInteger32LE
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HLAunsignedInteger32LE
impl PartialEq for HLAunsignedInteger32LE
Source§impl PartialOrd for HLAunsignedInteger32LE
impl PartialOrd for HLAunsignedInteger32LE
Source§impl Representation<u32> for HLAunsignedInteger32LE
impl Representation<u32> for HLAunsignedInteger32LE
Source§fn encode_value(value: &u32, writer: &mut ByteWriter<'_>)
fn encode_value(value: &u32, writer: &mut ByteWriter<'_>)
Encodes
value as this datatype.Source§fn decode_value(reader: &mut ByteReader<'_>) -> Result<u32, DecoderError>
fn decode_value(reader: &mut ByteReader<'_>) -> Result<u32, DecoderError>
Decodes a value of this datatype.
Source§fn encoded_len_of(_value: &u32) -> usize
fn encoded_len_of(_value: &u32) -> usize
Encoded length of
value when it starts at an aligned offset.impl StructuralPartialEq for HLAunsignedInteger32LE
Auto Trait Implementations§
impl Forget for HLAunsignedInteger32LE
impl Freeze for HLAunsignedInteger32LE
impl Move for HLAunsignedInteger32LE
impl RefUnwindSafe for HLAunsignedInteger32LE
impl Send for HLAunsignedInteger32LE
impl Sync for HLAunsignedInteger32LE
impl Unpin for HLAunsignedInteger32LE
impl UnsafeUnpin for HLAunsignedInteger32LE
impl UnwindSafe for HLAunsignedInteger32LE
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DataElement for T
impl<T> DataElement for T
Source§fn octet_boundary(&self) -> usize
fn octet_boundary(&self) -> usize
Octet boundary of this element.
Source§fn encode_into(&self, writer: &mut ByteWriter<'_>) -> Result<(), EncoderError>
fn encode_into(&self, writer: &mut ByteWriter<'_>) -> Result<(), EncoderError>
Appends the padding this element needs and its encoding.
Source§fn decode_from(
&mut self,
reader: &mut ByteReader<'_>,
) -> Result<(), DecoderError>
fn decode_from( &mut self, reader: &mut ByteReader<'_>, ) -> Result<(), DecoderError>
Skips the padding this element needs and replaces its value by the decoded one. Read more
Source§fn clone_element(&self) -> Box<dyn DataElement>
fn clone_element(&self) -> Box<dyn DataElement>
A boxed copy of this element.
Source§fn encoded_length(&self) -> Result<usize, EncoderError>
fn encoded_length(&self) -> Result<usize, EncoderError>
Length in octets of the encoding when it starts at an aligned offset.
Source§fn is_same_type_as(&self, other: &DynElement) -> bool
fn is_same_type_as(&self, other: &DynElement) -> bool
True if
other has the same datatype: the same Rust type and, for dynamic containers, the same
structure.Source§fn to_bytes(&self) -> Result<Vec<u8>, EncoderError>
fn to_bytes(&self) -> Result<Vec<u8>, EncoderError>
Encodes this element as an outermost value.
Source§fn append_to(&self, buffer: &mut Vec<u8>) -> Result<(), EncoderError>
fn append_to(&self, buffer: &mut Vec<u8>) -> Result<(), EncoderError>
Appends the encoding to
buffer as a new outermost value: padding is computed from the first
appended octet. On error buffer is left unchanged.Source§fn decode_slice(&mut self, bytes: &[u8]) -> Result<(), DecoderError>
fn decode_slice(&mut self, bytes: &[u8]) -> Result<(), DecoderError>
Decodes this element from the start of
bytes; octets after the value are ignored.Source§fn decode_slice_strict(&mut self, bytes: &[u8]) -> Result<(), DecoderError>
fn decode_slice_strict(&mut self, bytes: &[u8]) -> Result<(), DecoderError>
Decodes this element from
bytes, which must hold exactly one value.Source§impl<T> Representation<T> for Twhere
T: Decode,
impl<T> Representation<T> for Twhere
T: Decode,
Source§const BOUNDARY: usize = const BOUNDARY: usize = <T as Encode>::OCTET_BOUNDARY;
const BOUNDARY: usize = const BOUNDARY: usize = <T as Encode>::OCTET_BOUNDARY;
Octet boundary of the datatype.
Source§fn encode_value(value: &T, writer: &mut ByteWriter<'_>)
fn encode_value(value: &T, writer: &mut ByteWriter<'_>)
Encodes
value as this datatype.Source§fn decode_value(reader: &mut ByteReader<'_>) -> Result<T, DecoderError>
fn decode_value(reader: &mut ByteReader<'_>) -> Result<T, DecoderError>
Decodes a value of this datatype.
Source§fn encoded_len_of(value: &T) -> usize
fn encoded_len_of(value: &T) -> usize
Encoded length of
value when it starts at an aligned offset.