#[non_exhaustive]pub enum Attribute {
}
Expand description
Function or parameter attribute.
Mostly copied from LLVM.
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.
WillReturn
NoReturn
NoFree
NoRecurse
NoSync
NoUnwind
AllFramePointers
NativeTargetCpu
Cold
Hot
HintInline
AlwaysInline
NoInline
Speculatable
NoAlias
NoCapture
NoUndef
Align(u64)
NonNull
Dereferenceable(u64)
SRet(u64)
Size of the return type in bytes.
ReadNone
ReadOnly
WriteOnly
Writable
Trait Implementations§
impl Copy for Attribute
impl Eq for Attribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 16 bytes
Size for each variant:
WillReturn
: 0 bytesNoReturn
: 0 bytesNoFree
: 0 bytesNoRecurse
: 0 bytesNoSync
: 0 bytesNoUnwind
: 0 bytesAllFramePointers
: 0 bytesNativeTargetCpu
: 0 bytesCold
: 0 bytesHot
: 0 bytesHintInline
: 0 bytesAlwaysInline
: 0 bytesNoInline
: 0 bytesSpeculatable
: 0 bytesNoAlias
: 0 bytesNoCapture
: 0 bytesNoUndef
: 0 bytesAlign
: 8 bytesNonNull
: 0 bytesDereferenceable
: 8 bytesSRet
: 8 bytesReadNone
: 0 bytesReadOnly
: 0 bytesWriteOnly
: 0 bytesWritable
: 0 bytes