#[non_exhaustive]pub enum IntAttribute {
Alignment(MaybeAlign),
StackAlignment(MaybeAlign),
Dereferenceable(u64),
DereferenceableOrNull(u64),
AllocSize(u32, Option<u32>),
VScaleRange(u32, u32),
}Expand description
Represents an integral attribute, i.e. an attribute that carries (at least) one integer value with it.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Alignment(MaybeAlign)
align(<n>)
StackAlignment(MaybeAlign)
alignstack(<n>)
Dereferenceable(u64)
dereferenceable(<n>)
DereferenceableOrNull(u64)
dereferenceable_or_null(<n>)
AllocSize(u32, Option<u32>)
allocsize(<EltSizeParam>[, <NumEltsParam>])
VScaleRange(u32, u32)
vscale_range(<Min>[, <Max>])
Trait Implementations§
Source§impl Clone for IntAttribute
impl Clone for IntAttribute
Source§fn clone(&self) -> IntAttribute
fn clone(&self) -> IntAttribute
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 IntAttribute
impl Debug for IntAttribute
Source§impl PartialEq for IntAttribute
impl PartialEq for IntAttribute
Source§impl TryFrom<(AttributeId, u64)> for IntAttribute
impl TryFrom<(AttributeId, u64)> for IntAttribute
impl Copy for IntAttribute
impl StructuralPartialEq for IntAttribute
Auto Trait Implementations§
impl Freeze for IntAttribute
impl RefUnwindSafe for IntAttribute
impl Send for IntAttribute
impl Sync for IntAttribute
impl Unpin for IntAttribute
impl UnwindSafe for IntAttribute
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