pub enum Directive {
Arch(String),
Feature(Vec<String>),
Data(Size, Vec<Const>),
Byte(Expr),
Align {
value: Expr,
with: Option<Expr>,
},
Alias {
alias: String,
reg: String,
},
Expr(Expr),
}
Variants§
Arch(String)
Set the architcture.
Feature(Vec<String>)
Activate an architecture feature, or none to remove all.
Data(Size, Vec<Const>)
Directly add some inline data words.
Byte(Expr)
Add some byte directly to the assembled data.
Align
Perform an alignment.
Alias
Expr(Expr)
A direct expression to add as bytes to the output.
Auto Trait Implementations§
impl Freeze for Directive
impl RefUnwindSafe for Directive
impl Send for Directive
impl Sync for Directive
impl Unpin for Directive
impl UnwindSafe for Directive
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