pub struct AlignDirective {
pub alignment: u32,
pub fill: Option<u8>,
pub max_skip: Option<u32>,
pub span: Span,
}Expand description
Alignment directive.
Fields§
§alignment: u32Required alignment in bytes (must be a power of two).
fill: Option<u8>Fill byte (when None, x86 uses multi-byte NOP sequences).
max_skip: Option<u32>If padding would exceed this many bytes, skip the alignment entirely.
span: SpanSource location.
Trait Implementations§
Source§impl Clone for AlignDirective
impl Clone for AlignDirective
Source§fn clone(&self) -> AlignDirective
fn clone(&self) -> AlignDirective
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 AlignDirective
impl Debug for AlignDirective
Source§impl PartialEq for AlignDirective
impl PartialEq for AlignDirective
impl Eq for AlignDirective
impl StructuralPartialEq for AlignDirective
Auto Trait Implementations§
impl Freeze for AlignDirective
impl RefUnwindSafe for AlignDirective
impl Send for AlignDirective
impl Sync for AlignDirective
impl Unpin for AlignDirective
impl UnwindSafe for AlignDirective
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