pub struct Opcode(/* private fields */);Expand description
Which instruction this is.
A name rather than a variant of an enum. spec/10-backend.md section 10.8 says no pipeline
crate holds target-specific code, and an enum of every x86-64 opcode in the crate every
target’s MIR passes through is exactly that. The opcodes a target has are data: they come out
of its rule set, which is what the selector was compiled from, and this crate never asks what
one of them means. The encoder does, against the same description the rules were written
against.
Implementations§
Trait Implementations§
impl Copy for Opcode
impl Eq for Opcode
Source§impl Ord for Opcode
impl Ord for Opcode
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 PartialOrd for Opcode
impl PartialOrd 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 UnsafeUnpin 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