#[non_exhaustive]#[repr(u8)]pub enum UnaryOpcode {
Fneg = 0,
}Expand description
Unary Opcodes
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Fneg = 0
UNOP_FNEG
Trait Implementations§
Source§impl Clone for UnaryOpcode
impl Clone for UnaryOpcode
Source§fn clone(&self) -> UnaryOpcode
fn clone(&self) -> UnaryOpcode
Returns a duplicate 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 UnaryOpcode
impl Debug for UnaryOpcode
Source§impl TryFrom<u8> for UnaryOpcode
impl TryFrom<u8> for UnaryOpcode
Source§type Error = TryFromPrimitiveError<UnaryOpcode>
type Error = TryFromPrimitiveError<UnaryOpcode>
The type returned in the event of a conversion error.
Source§impl TryFromPrimitive for UnaryOpcode
impl TryFromPrimitive for UnaryOpcode
const NAME: &'static str = "UnaryOpcode"
type Primitive = u8
type Error = TryFromPrimitiveError<UnaryOpcode>
fn try_from_primitive( number: Self::Primitive, ) -> Result<Self, TryFromPrimitiveError<Self>>
impl Copy for UnaryOpcode
Auto Trait Implementations§
impl Freeze for UnaryOpcode
impl RefUnwindSafe for UnaryOpcode
impl Send for UnaryOpcode
impl Sync for UnaryOpcode
impl Unpin for UnaryOpcode
impl UnwindSafe for UnaryOpcode
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