#[repr(u8)]pub enum AttrKind {
Show 95 variants
Alignment = 1,
AlwaysInline = 2,
ByVal = 3,
InlineHint = 4,
InReg = 5,
MinSize = 6,
Naked = 7,
Nest = 8,
NoAlias = 9,
NoBuiltin = 10,
NoCapture = 11,
NoDuplicate = 12,
NoImplicitFloat = 13,
NoInline = 14,
NonLazyBind = 15,
NoRedZone = 16,
NoReturn = 17,
NoUnwind = 18,
OptimizeForSize = 19,
ReadNone = 20,
ReadOnly = 21,
Returned = 22,
ReturnsTwice = 23,
SExt = 24,
StackAlignment = 25,
StackProtect = 26,
StackProtectReq = 27,
StackProtectStrong = 28,
StructRet = 29,
SanitizeAddress = 30,
SanitizeThread = 31,
SanitizeMemory = 32,
UwTable = 33,
ZExt = 34,
Builtin = 35,
Cold = 36,
OptimizeNone = 37,
InAlloca = 38,
NonNull = 39,
JumpTable = 40,
Dereferenceable = 41,
DereferenceableOrNull = 42,
Convergent = 43,
Safestack = 44,
ArgMemOnly = 45,
SwiftSelf = 46,
SwiftError = 47,
NoRecurse = 48,
InaccessibleMemOnly = 49,
InaccessiblememOrArgMemOnly = 50,
AllocSize = 51,
Writeonly = 52,
Speculatable = 53,
StrictFp = 54,
SanitizeHwaddress = 55,
NocfCheck = 56,
OptForFuzzing = 57,
Shadowcallstack = 58,
SpeculativeLoadHardening = 59,
Immarg = 60,
Willreturn = 61,
Nofree = 62,
Nosync = 63,
SanitizeMemtag = 64,
Preallocated = 65,
NoMerge = 66,
NullPointerIsValid = 67,
Noundef = 68,
Byref = 69,
Mustprogress = 70,
NoCallback = 71,
Hot = 72,
NoProfile = 73,
VscaleRange = 74,
SwiftAsync = 75,
NoSanitizeCoverage = 76,
Elementtype = 77,
DisableSanitizerInstrumentation = 78,
NoSanitizeBounds = 79,
AllocAlign = 80,
AllocatedPointer = 81,
AllocKind = 82,
PresplitCoroutine = 83,
FnretthunkExtern = 84,
SkipProfile = 85,
Memory = 86,
Nofpclass = 87,
OptimizeForDebugging = 88,
Writable = 89,
CoroOnlyDestroyWhenComplete = 90,
DeadOnUnwind = 91,
Range = 92,
SanitizeNumericalStability = 93,
Initializes = 94,
HybridPatchable = 95,
}Variants§
Alignment = 1
AlwaysInline = 2
ByVal = 3
InlineHint = 4
InReg = 5
MinSize = 6
Naked = 7
Nest = 8
NoAlias = 9
NoBuiltin = 10
NoCapture = 11
NoDuplicate = 12
NoImplicitFloat = 13
NoInline = 14
NonLazyBind = 15
NoRedZone = 16
NoReturn = 17
NoUnwind = 18
OptimizeForSize = 19
ReadNone = 20
ReadOnly = 21
Returned = 22
ReturnsTwice = 23
SExt = 24
StackAlignment = 25
StackProtect = 26
StackProtectReq = 27
StackProtectStrong = 28
StructRet = 29
SanitizeAddress = 30
SanitizeThread = 31
SanitizeMemory = 32
UwTable = 33
ZExt = 34
Builtin = 35
Cold = 36
OptimizeNone = 37
InAlloca = 38
NonNull = 39
JumpTable = 40
Dereferenceable = 41
DereferenceableOrNull = 42
Convergent = 43
Safestack = 44
ArgMemOnly = 45
Unused
SwiftSelf = 46
SwiftError = 47
NoRecurse = 48
InaccessibleMemOnly = 49
Unused
InaccessiblememOrArgMemOnly = 50
Unused
AllocSize = 51
Writeonly = 52
Speculatable = 53
StrictFp = 54
SanitizeHwaddress = 55
NocfCheck = 56
OptForFuzzing = 57
Shadowcallstack = 58
SpeculativeLoadHardening = 59
Immarg = 60
Willreturn = 61
Nofree = 62
Nosync = 63
SanitizeMemtag = 64
Preallocated = 65
NoMerge = 66
NullPointerIsValid = 67
Noundef = 68
Byref = 69
Mustprogress = 70
NoCallback = 71
Hot = 72
NoProfile = 73
VscaleRange = 74
SwiftAsync = 75
NoSanitizeCoverage = 76
Elementtype = 77
DisableSanitizerInstrumentation = 78
NoSanitizeBounds = 79
AllocAlign = 80
AllocatedPointer = 81
AllocKind = 82
PresplitCoroutine = 83
FnretthunkExtern = 84
SkipProfile = 85
Memory = 86
Nofpclass = 87
OptimizeForDebugging = 88
Writable = 89
CoroOnlyDestroyWhenComplete = 90
DeadOnUnwind = 91
Range = 92
SanitizeNumericalStability = 93
Initializes = 94
HybridPatchable = 95
Trait Implementations§
Source§impl TryFromPrimitive for AttrKind
impl TryFromPrimitive for AttrKind
impl Copy for AttrKind
impl StructuralPartialEq for AttrKind
Auto Trait Implementations§
impl Freeze for AttrKind
impl RefUnwindSafe for AttrKind
impl Send for AttrKind
impl Sync for AttrKind
impl Unpin for AttrKind
impl UnwindSafe for AttrKind
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