Struct yaxpeax_arch::U32le
source · pub struct U32le(pub u32);
Tuple Fields§
§0: u32
Trait Implementations§
source§impl Ord for U32le
impl Ord for U32le
source§impl PartialEq for U32le
impl PartialEq for U32le
source§impl PartialOrd for U32le
impl PartialOrd for U32le
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Reader<u16, U32le> for U8Reader<'_>
impl Reader<u16, U32le> for U8Reader<'_>
fn next(&mut self) -> Result<U32le, ReadError>
source§fn next_n(&mut self, buf: &mut [U32le]) -> Result<(), ReadError>
fn next_n(&mut self, buf: &mut [U32le]) -> Result<(), ReadError>
read
buf
-many items from this reader in bulk. if Reader
cannot read buf
-many items,
return ReadError::ExhaustedInput
.source§fn offset(&mut self) -> u16
fn offset(&mut self) -> u16
the difference, in
Address
, between the current Reader
position and its last mark
.
when created, a Reader
’s initial position is mark
ed, so creating a Reader
and
immediately calling offset()
must return Address::zero()
.source§fn total_offset(&mut self) -> u16
fn total_offset(&mut self) -> u16
the difference, in
Address
, between the current Reader
position and the initial offset
when constructed.source§impl Reader<u32, U32le> for U8Reader<'_>
impl Reader<u32, U32le> for U8Reader<'_>
fn next(&mut self) -> Result<U32le, ReadError>
source§fn next_n(&mut self, buf: &mut [U32le]) -> Result<(), ReadError>
fn next_n(&mut self, buf: &mut [U32le]) -> Result<(), ReadError>
read
buf
-many items from this reader in bulk. if Reader
cannot read buf
-many items,
return ReadError::ExhaustedInput
.source§fn offset(&mut self) -> u32
fn offset(&mut self) -> u32
the difference, in
Address
, between the current Reader
position and its last mark
.
when created, a Reader
’s initial position is mark
ed, so creating a Reader
and
immediately calling offset()
must return Address::zero()
.source§fn total_offset(&mut self) -> u32
fn total_offset(&mut self) -> u32
the difference, in
Address
, between the current Reader
position and the initial offset
when constructed.source§impl Reader<u64, U32le> for U8Reader<'_>
impl Reader<u64, U32le> for U8Reader<'_>
fn next(&mut self) -> Result<U32le, ReadError>
source§fn next_n(&mut self, buf: &mut [U32le]) -> Result<(), ReadError>
fn next_n(&mut self, buf: &mut [U32le]) -> Result<(), ReadError>
read
buf
-many items from this reader in bulk. if Reader
cannot read buf
-many items,
return ReadError::ExhaustedInput
.source§fn offset(&mut self) -> u64
fn offset(&mut self) -> u64
the difference, in
Address
, between the current Reader
position and its last mark
.
when created, a Reader
’s initial position is mark
ed, so creating a Reader
and
immediately calling offset()
must return Address::zero()
.source§fn total_offset(&mut self) -> u64
fn total_offset(&mut self) -> u64
the difference, in
Address
, between the current Reader
position and the initial offset
when constructed.impl Copy for U32le
impl Eq for U32le
impl StructuralPartialEq for U32le
Auto Trait Implementations§
impl Freeze for U32le
impl RefUnwindSafe for U32le
impl Send for U32le
impl Sync for U32le
impl Unpin for U32le
impl UnwindSafe for U32le
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