#[non_exhaustive]pub enum Attribute {
Enum(EnumAttribute),
Int(IntAttribute),
Str(String),
StrKeyValue(String, String),
}Expand description
Represents a single, concrete LLVM attribute.
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.
Enum(EnumAttribute)
An enumerated attribute.
Int(IntAttribute)
An integer attribute.
Str(String)
An arbitrary string attribute.
StrKeyValue(String, String)
An arbitrary string attribute with a string value.
Trait Implementations§
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnwindSafe for Attribute
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