pub struct VmOpcode(/* private fields */);
Implementations§
Source§impl VmOpcode
impl VmOpcode
Sourcepub fn local_opcode_idx(&self, offset: usize) -> usize
pub fn local_opcode_idx(&self, offset: usize) -> usize
Returns the corresponding local_opcode_idx
Sourcepub fn from_usize(value: usize) -> Self
pub fn from_usize(value: usize) -> Self
Create a new VmOpcode from a usize
Sourcepub fn with_default_offset<Opcode: UsizeOpcode>(
local_opcode: Opcode,
) -> VmOpcode
pub fn with_default_offset<Opcode: UsizeOpcode>( local_opcode: Opcode, ) -> VmOpcode
Returns the corresponding VmOpcode from local_opcode
with default offset
Trait Implementations§
Source§impl<'de> Deserialize<'de> for VmOpcode
impl<'de> Deserialize<'de> for VmOpcode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Copy for VmOpcode
impl Eq for VmOpcode
impl StructuralPartialEq for VmOpcode
Auto Trait Implementations§
impl Freeze for VmOpcode
impl RefUnwindSafe for VmOpcode
impl Send for VmOpcode
impl Sync for VmOpcode
impl Unpin for VmOpcode
impl UnwindSafe for VmOpcode
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§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
)Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more