Struct wasmbin::instructions::threads::AlignedMemArg
source · pub struct AlignedMemArg<const ALIGN_LOG2: u32> {
pub memory: MemId,
pub offset: u32,
}
Available on crate feature
threads
only.Expand description
Variant of MemArg
with a fixed compile-time alignment.
Fields§
§memory: MemId
Available on crate feature
§multi-memory
only.offset: u32
Trait Implementations§
source§impl<const ALIGN_LOG2: u32> Clone for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> Clone for AlignedMemArg<ALIGN_LOG2>
source§fn clone(&self) -> AlignedMemArg<ALIGN_LOG2>
fn clone(&self) -> AlignedMemArg<ALIGN_LOG2>
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<const ALIGN_LOG2: u32> Debug for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> Debug for AlignedMemArg<ALIGN_LOG2>
source§impl<const ALIGN_LOG2: u32> Decode for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> Decode for AlignedMemArg<ALIGN_LOG2>
source§impl<const ALIGN_LOG2: u32> Encode for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> Encode for AlignedMemArg<ALIGN_LOG2>
source§impl<const ALIGN_LOG2: u32> From<AlignedMemArg<ALIGN_LOG2>> for MemArg
impl<const ALIGN_LOG2: u32> From<AlignedMemArg<ALIGN_LOG2>> for MemArg
source§fn from(arg: AlignedMemArg<ALIGN_LOG2>) -> MemArg
fn from(arg: AlignedMemArg<ALIGN_LOG2>) -> MemArg
Converts to this type from the input type.
source§impl<const ALIGN_LOG2: u32> Hash for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> Hash for AlignedMemArg<ALIGN_LOG2>
source§impl<const ALIGN_LOG2: u32> PartialEq for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> PartialEq for AlignedMemArg<ALIGN_LOG2>
source§fn eq(&self, other: &AlignedMemArg<ALIGN_LOG2>) -> bool
fn eq(&self, other: &AlignedMemArg<ALIGN_LOG2>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<const ALIGN_LOG2: u32> Visit for AlignedMemArg<ALIGN_LOG2>where
Self: 'static,
impl<const ALIGN_LOG2: u32> Visit for AlignedMemArg<ALIGN_LOG2>where
Self: 'static,
source§fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>(
&'a self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children<'a, VisitT: 'static, VisitE, VisitF: FnMut(&'a VisitT) -> Result<(), VisitE>>( &'a self, f: &mut VisitF ) -> Result<(), VisitError<VisitE>>
Traverse the children of this value with the provided callback.
source§fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>(
&mut self,
f: &mut VisitF
) -> Result<(), VisitError<VisitE>>
fn visit_children_mut<VisitT: 'static, VisitE, VisitF: FnMut(&mut VisitT) -> Result<(), VisitE>>( &mut self, f: &mut VisitF ) -> Result<(), VisitError<VisitE>>
Traverse the children of this value mutably with the provided callback.
source§fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>(
&'a self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit<'a, T: 'static, R: VisitResult, F: FnMut(&'a T) -> R>( &'a self, f: F ) -> Result<(), VisitError<R::Error>>
Traverse this value with the provided callback.
source§fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>(
&mut self,
f: F
) -> Result<(), VisitError<R::Error>>
fn visit_mut<T: 'static, R: VisitResult, F: FnMut(&mut T) -> R>( &mut self, f: F ) -> Result<(), VisitError<R::Error>>
Traverse this value mutably with the provided callback.
impl<const ALIGN_LOG2: u32> Eq for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> StructuralEq for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> StructuralPartialEq for AlignedMemArg<ALIGN_LOG2>
Auto Trait Implementations§
impl<const ALIGN_LOG2: u32> RefUnwindSafe for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> Send for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> Sync for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> Unpin for AlignedMemArg<ALIGN_LOG2>
impl<const ALIGN_LOG2: u32> UnwindSafe for AlignedMemArg<ALIGN_LOG2>
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