pub struct Alignment {
pub kind: AlignmentKind,
pub from_attribute: bool,
pub range: SourceRange,
}Expand description
An _Alignas / alignas specifier (C11 6.7.5).
Fields§
§kind: AlignmentKindWhat was written inside the parentheses.
from_attribute: boolWhether this came from __attribute__((aligned(N))) rather than from an
_Alignas specifier.
The two ask for the same thing and are folded into one list, but they
differ on one point: an _Alignas weaker than the type’s own alignment
is a constraint violation (C11 6.7.5p4), while GCC’s aligned “can only
increase alignment” and a weaker one is simply not applied.
range: SourceRangeWhere the specifier was written.
Trait Implementations§
impl StructuralPartialEq for Alignment
Auto Trait Implementations§
impl Freeze for Alignment
impl RefUnwindSafe for Alignment
impl Send for Alignment
impl Sync for Alignment
impl Unpin for Alignment
impl UnsafeUnpin for Alignment
impl UnwindSafe for Alignment
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