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 for AssemblyOffset
impl PartialEq for AssemblyOffset
source§fn eq(&self, other: &AssemblyOffset) -> bool
fn eq(&self, other: &AssemblyOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AssemblyOffset
impl PartialOrd 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 moreimpl Copy for AssemblyOffset
impl Eq for AssemblyOffset
impl StructuralPartialEq for AssemblyOffset
Auto Trait Implementations§
impl Freeze for AssemblyOffset
impl RefUnwindSafe for AssemblyOffset
impl Send for AssemblyOffset
impl Sync for AssemblyOffset
impl Unpin for AssemblyOffset
impl UnwindSafe for AssemblyOffset
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)