Represents associated item kinds.
The term “provided” in the variants below refers to the item having a default
definition / body. Meanwhile, a “required” item lacks a definition / body.
In an implementation, all items must be provided.
Options below denote the bodies, where
means “provided” and conversely
None means “required”.
An associated constant,
const $ident: $ty $def?; where
def ::= "=" $expr? ;.
def is parsed, then the constant is provided, and otherwise required.
An associated function.
An associated type.
A macro expanding to associated items.
Auto Trait Implementations§
Returns the argument unchanged.
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: 32 bytes
Size for each variant:
Const: 28 bytes
Fn: 12 bytes
Type: 12 bytes
MacCall: 12 bytes