Struct dynasmrt::AssemblyOffset
source · pub struct AssemblyOffset(pub usize);
Expand description
A struct representing an offset into the assembling buffer of a DynasmLabelApi
struct.
The wrapped usize
is the offset from the start of the assembling buffer in bytes.
Tuple Fields§
§0: usize
Trait Implementations§
source§impl Clone for AssemblyOffset
impl Clone for AssemblyOffset
source§fn clone(&self) -> AssemblyOffset
fn clone(&self) -> AssemblyOffset
Returns a copy 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 AssemblyOffset
impl Debug for AssemblyOffset
source§impl Hash for AssemblyOffset
impl Hash for AssemblyOffset
source§impl Ord for AssemblyOffset
impl Ord for AssemblyOffset
source§fn cmp(&self, other: &AssemblyOffset) -> Ordering
fn cmp(&self, other: &AssemblyOffset) -> Ordering
1.21.0 · 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
source§impl PartialEq<AssemblyOffset> for AssemblyOffset
impl PartialEq<AssemblyOffset> for AssemblyOffset
source§fn eq(&self, other: &AssemblyOffset) -> bool
fn eq(&self, other: &AssemblyOffset) -> bool
source§impl PartialOrd<AssemblyOffset> for AssemblyOffset
impl PartialOrd<AssemblyOffset> for AssemblyOffset
source§fn partial_cmp(&self, other: &AssemblyOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &AssemblyOffset) -> Option<Ordering>
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 more