#[repr(usize)]pub enum SystemOpcode {
TERMINATE = 0,
PHANTOM = 1,
}Variants§
Implementations§
Source§impl SystemOpcode
impl SystemOpcode
Trait Implementations§
Source§impl Clone for SystemOpcode
impl Clone for SystemOpcode
impl Copy for SystemOpcode
Source§impl Debug for SystemOpcode
impl Debug for SystemOpcode
impl Eq for SystemOpcode
Source§impl IntoEnumIterator for SystemOpcode
impl IntoEnumIterator for SystemOpcode
type Iterator = SystemOpcodeIter
fn iter() -> SystemOpcodeIter ⓘ
Source§impl LocalOpcode for SystemOpcode
impl LocalOpcode for SystemOpcode
const CLASS_OFFSET: usize = 0usize
Source§fn from_usize(value: usize) -> Self
fn from_usize(value: usize) -> Self
Convert from the discriminant of the enum to the typed enum variant.
Default implementation uses
from_repr.fn local_usize(&self) -> usize
fn global_opcode_usize(&self) -> usize
fn global_opcode(&self) -> VmOpcode
Source§impl Ord for SystemOpcode
impl Ord for SystemOpcode
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for SystemOpcode
impl PartialEq for SystemOpcode
Source§impl PartialOrd for SystemOpcode
impl PartialOrd for SystemOpcode
impl StructuralPartialEq for SystemOpcode
Auto Trait Implementations§
impl Freeze for SystemOpcode
impl RefUnwindSafe for SystemOpcode
impl Send for SystemOpcode
impl Sync for SystemOpcode
impl Unpin for SystemOpcode
impl UnsafeUnpin for SystemOpcode
impl UnwindSafe for SystemOpcode
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§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