#[repr(C)]
pub enum AttributeKind {
Show 40 variants AlwaysInline, ByVal, Cold, InlineHint, MinSize, Naked, NoAlias, NoCapture, NoInline, NonNull, NoRedZone, NoReturn, NoUnwind, OptimizeForSize, ReadOnly, SExt, StructRet, UWTable, ZExt, InReg, SanitizeThread, SanitizeAddress, SanitizeMemory, NonLazyBind, OptimizeNone, ReturnsTwice, ReadNone, InaccessibleMemOnly, SanitizeHWAddress, WillReturn, StackProtectReq, StackProtectStrong, StackProtect, NoUndef, SanitizeMemTag, NoCfCheck, ShadowCallStack, AllocSize, AllocatedPointer, AllocAlign,
}
Expand description

Matches LLVMRustAttribute in LLVMWrapper.h Semantically a subset of the C++ enum llvm::Attribute::AttrKind, though it is not ABI compatible (since it’s a C++ enum)

Variants

AlwaysInline

ByVal

Cold

InlineHint

MinSize

Naked

NoAlias

NoCapture

NoInline

NonNull

NoRedZone

NoReturn

NoUnwind

OptimizeForSize

ReadOnly

SExt

StructRet

UWTable

ZExt

InReg

SanitizeThread

SanitizeAddress

SanitizeMemory

NonLazyBind

OptimizeNone

ReturnsTwice

ReadNone

InaccessibleMemOnly

SanitizeHWAddress

WillReturn

StackProtectReq

StackProtectStrong

StackProtect

NoUndef

SanitizeMemTag

NoCfCheck

ShadowCallStack

AllocSize

AllocatedPointer

AllocAlign

Implementations

Create an LLVM Attribute with no associated value.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

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: 4 bytes

Size for each variant:

  • AlwaysInline: 0 bytes
  • ByVal: 0 bytes
  • Cold: 0 bytes
  • InlineHint: 0 bytes
  • MinSize: 0 bytes
  • Naked: 0 bytes
  • NoAlias: 0 bytes
  • NoCapture: 0 bytes
  • NoInline: 0 bytes
  • NonNull: 0 bytes
  • NoRedZone: 0 bytes
  • NoReturn: 0 bytes
  • NoUnwind: 0 bytes
  • OptimizeForSize: 0 bytes
  • ReadOnly: 0 bytes
  • SExt: 0 bytes
  • StructRet: 0 bytes
  • UWTable: 0 bytes
  • ZExt: 0 bytes
  • InReg: 0 bytes
  • SanitizeThread: 0 bytes
  • SanitizeAddress: 0 bytes
  • SanitizeMemory: 0 bytes
  • NonLazyBind: 0 bytes
  • OptimizeNone: 0 bytes
  • ReturnsTwice: 0 bytes
  • ReadNone: 0 bytes
  • InaccessibleMemOnly: 0 bytes
  • SanitizeHWAddress: 0 bytes
  • WillReturn: 0 bytes
  • StackProtectReq: 0 bytes
  • StackProtectStrong: 0 bytes
  • StackProtect: 0 bytes
  • NoUndef: 0 bytes
  • SanitizeMemTag: 0 bytes
  • NoCfCheck: 0 bytes
  • ShadowCallStack: 0 bytes
  • AllocSize: 0 bytes
  • AllocatedPointer: 0 bytes
  • AllocAlign: 0 bytes