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
sourceimpl Clone for AssemblyOffset
impl Clone for AssemblyOffset
sourcefn clone(&self) -> AssemblyOffset
fn clone(&self) -> AssemblyOffset
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for AssemblyOffset
impl Debug for AssemblyOffset
sourceimpl Hash for AssemblyOffset
impl Hash for AssemblyOffset
sourceimpl Ord for AssemblyOffset
impl Ord for AssemblyOffset
sourcefn cmp(&self, other: &AssemblyOffset) -> Ordering
fn cmp(&self, other: &AssemblyOffset) -> Ordering
1.21.0 · sourceconst fn max(self, other: Self) -> Self
const fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
1.21.0 · sourceconst fn min(self, other: Self) -> Self
const fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
1.50.0 · sourceconst fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
const fn clamp(self, min: Self, max: Self) -> Selfwhere
Self: PartialOrd<Self>,
Restrict a value to a certain interval. Read more
sourceimpl PartialEq<AssemblyOffset> for AssemblyOffset
impl PartialEq<AssemblyOffset> for AssemblyOffset
sourcefn eq(&self, other: &AssemblyOffset) -> bool
fn eq(&self, other: &AssemblyOffset) -> bool
sourceimpl PartialOrd<AssemblyOffset> for AssemblyOffset
impl PartialOrd<AssemblyOffset> for AssemblyOffset
sourcefn partial_cmp(&self, other: &AssemblyOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &AssemblyOffset) -> Option<Ordering>
1.0.0 · sourceconst fn le(&self, other: &Rhs) -> bool
const 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 moreimpl Copy for AssemblyOffset
impl Eq for AssemblyOffset
impl StructuralEq for AssemblyOffset
impl StructuralPartialEq for AssemblyOffset
Auto Trait Implementations
impl RefUnwindSafe for AssemblyOffset
impl Send for AssemblyOffset
impl Sync for AssemblyOffset
impl Unpin for AssemblyOffset
impl UnwindSafe for AssemblyOffset
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