pub enum FunctionAttribute {
Show 49 variants
AlignStack(u64),
AllocSize {
elt_size: u32,
num_elts: Option<u32>,
},
AlwaysInline,
Builtin,
Cold,
Convergent,
InaccessibleMemOnly,
InaccessibleMemOrArgMemOnly,
InlineHint,
JumpTable,
MinimizeSize,
Naked,
NoBuiltin,
NoCFCheck,
NoDuplicate,
NoFree,
NoImplicitFloat,
NoInline,
NonLazyBind,
NoRedZone,
NoReturn,
NoRecurse,
WillReturn,
ReturnsTwice,
NoSync,
NoUnwind,
OptForFuzzing,
OptNone,
OptSize,
ReadNone,
ReadOnly,
WriteOnly,
ArgMemOnly,
SafeStack,
SanitizeAddress,
SanitizeMemory,
SanitizeThread,
SanitizeHWAddress,
SanitizeMemTag,
ShadowCallStack,
SpeculativeLoadHardening,
Speculatable,
StackProtect,
StackProtectReq,
StackProtectStrong,
StrictFP,
UWTable,
StringAttribute {
kind: String,
value: String,
},
UnknownAttribute,
}
Expand description
Variants§
AlignStack(u64)
AllocSize
AlwaysInline
Builtin
Cold
Convergent
InaccessibleMemOnly
InaccessibleMemOrArgMemOnly
InlineHint
JumpTable
MinimizeSize
Naked
NoBuiltin
NoCFCheck
NoDuplicate
NoFree
NoImplicitFloat
NoInline
NonLazyBind
NoRedZone
NoReturn
NoRecurse
WillReturn
ReturnsTwice
NoSync
NoUnwind
OptForFuzzing
OptNone
OptSize
ReadNone
ReadOnly
WriteOnly
ArgMemOnly
SafeStack
SanitizeAddress
SanitizeMemory
SanitizeThread
SanitizeHWAddress
SanitizeMemTag
ShadowCallStack
SpeculativeLoadHardening
Speculatable
StackProtect
StackProtectReq
StackProtectStrong
StrictFP
UWTable
StringAttribute
UnknownAttribute
Trait Implementations§
Source§impl Clone for FunctionAttribute
impl Clone for FunctionAttribute
Source§fn clone(&self) -> FunctionAttribute
fn clone(&self) -> FunctionAttribute
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 FunctionAttribute
impl Debug for FunctionAttribute
Source§impl Hash for FunctionAttribute
impl Hash for FunctionAttribute
Source§impl PartialEq for FunctionAttribute
impl PartialEq for FunctionAttribute
impl Eq for FunctionAttribute
impl StructuralPartialEq for FunctionAttribute
Auto Trait Implementations§
impl Freeze for FunctionAttribute
impl RefUnwindSafe for FunctionAttribute
impl Send for FunctionAttribute
impl Sync for FunctionAttribute
impl Unpin for FunctionAttribute
impl UnwindSafe for FunctionAttribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more