Struct yaxpeax_arch::U16le
source · [−]pub struct U16le(pub u16);
Tuple Fields
0: u16
Trait Implementations
sourceimpl Ord for U16le
impl Ord for U16le
1.21.0 · sourcefn 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 · sourcefn 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
1.50.0 · sourcefn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialOrd<U16le> for U16le
impl PartialOrd<U16le> for U16le
sourcefn partial_cmp(&self, other: &U16le) -> Option<Ordering>
fn partial_cmp(&self, other: &U16le) -> Option<Ordering>
1.0.0 · sourcefn 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 moresourceimpl Reader<u16, U16le> for U8Reader<'_>
impl Reader<u16, U16le> for U8Reader<'_>
fn next(&mut self) -> Result<U16le, ReadError>
sourcefn next_n(&mut self, buf: &mut [U16le]) -> Result<(), ReadError>
fn next_n(&mut self, buf: &mut [U16le]) -> Result<(), ReadError>
read
buf
-many items from this reader in bulk. if Reader
cannot read buf
-many items,
return ReadError::ExhaustedInput
. Read moresourcefn 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()
. Read moresourcefn 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. Read moresourceimpl Reader<u32, U16le> for U8Reader<'_>
impl Reader<u32, U16le> for U8Reader<'_>
fn next(&mut self) -> Result<U16le, ReadError>
sourcefn next_n(&mut self, buf: &mut [U16le]) -> Result<(), ReadError>
fn next_n(&mut self, buf: &mut [U16le]) -> Result<(), ReadError>
read
buf
-many items from this reader in bulk. if Reader
cannot read buf
-many items,
return ReadError::ExhaustedInput
. Read moresourcefn 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()
. Read moresourcefn 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. Read moresourceimpl Reader<u64, U16le> for U8Reader<'_>
impl Reader<u64, U16le> for U8Reader<'_>
fn next(&mut self) -> Result<U16le, ReadError>
sourcefn next_n(&mut self, buf: &mut [U16le]) -> Result<(), ReadError>
fn next_n(&mut self, buf: &mut [U16le]) -> Result<(), ReadError>
read
buf
-many items from this reader in bulk. if Reader
cannot read buf
-many items,
return ReadError::ExhaustedInput
. Read moresourcefn 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()
. Read moresourcefn 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. Read moresourceimpl<'data> ReaderBuilder<u16, U16le> for &'data [u8]
impl<'data> ReaderBuilder<u16, U16le> for &'data [u8]
sourceimpl<'data> ReaderBuilder<u32, U16le> for &'data [u8]
impl<'data> ReaderBuilder<u32, U16le> for &'data [u8]
sourceimpl<'data> ReaderBuilder<u64, U16le> for &'data [u8]
impl<'data> ReaderBuilder<u64, U16le> for &'data [u8]
impl Copy for U16le
impl Eq for U16le
impl StructuralEq for U16le
impl StructuralPartialEq for U16le
Auto Trait Implementations
impl RefUnwindSafe for U16le
impl Send for U16le
impl Sync for U16le
impl Unpin for U16le
impl UnwindSafe for U16le
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more