pub enum Opcode {
NOP = 0,
Read = 1,
Write = 2,
}
Variants§
Trait Implementations§
Source§impl PrimitiveEnum<u8> for Opcode
impl PrimitiveEnum<u8> for Opcode
Source§fn from_primitive(val: u8) -> Option<Self>
fn from_primitive(val: u8) -> Option<Self>
Convert from a primitive, might fail.
Source§fn to_primitive(&self) -> u8
fn to_primitive(&self) -> u8
Convert to a primitive value.
Source§fn to_display_str(&self) -> &'static str
fn to_display_str(&self) -> &'static str
Display value, same as the name of a particular variant.
Source§fn from_str(s: &str) -> Option<Self>
fn from_str(s: &str) -> Option<Self>
Convert from a string value representing the variant. Case sensitive.
Source§fn from_str_lower(s: &str) -> Option<Self>
fn from_str_lower(s: &str) -> Option<Self>
Convert from a string value representing the variant. Lowercase.
Source§fn all_variants() -> &'static [Self]
fn all_variants() -> &'static [Self]
A list all possible string variants.
impl Copy for Opcode
impl StructuralPartialEq for Opcode
Auto Trait Implementations§
impl Freeze for Opcode
impl RefUnwindSafe for Opcode
impl Send for Opcode
impl Sync for Opcode
impl Unpin for Opcode
impl UnwindSafe for Opcode
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