pub struct EncodedInstr {
pub bytes: InstrBytes,
pub relocation: Option<Relocation>,
pub relax: Option<RelaxInfo>,
}Expand description
Result of encoding a single instruction.
Fields§
§bytes: InstrBytesThe machine code bytes (long form for relaxable instructions).
relocation: Option<Relocation>If the instruction references a label, this records it for the linker.
relax: Option<RelaxInfo>If present, the instruction can be shortened via branch relaxation.
Trait Implementations§
Source§impl Clone for EncodedInstr
impl Clone for EncodedInstr
Source§fn clone(&self) -> EncodedInstr
fn clone(&self) -> EncodedInstr
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 moreAuto Trait Implementations§
impl Freeze for EncodedInstr
impl RefUnwindSafe for EncodedInstr
impl !Send for EncodedInstr
impl !Sync for EncodedInstr
impl Unpin for EncodedInstr
impl UnwindSafe for EncodedInstr
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