API glossary
On this page
Kinds, modifiers and package labels in the Rust API reference. Select an annotation or full API badge to open its definition here.
The signature and entry documentation describe the API’s behavior, including its calling conventions, storage and runtime checks.
Symbol kinds
Kinds identify declarations in the Rust API reference.
class
A Rust named type shown with the shared class badge. Rust declares structs and enums; inspect the declaration for its actual form.
References: Rust structs ; Rust enums .
struct
A Rust data type with named, tuple or no fields. Its fields, visibility and ownership follow the declaration.
References: Rust structs .
enum
A Rust type whose variants can be unit-like, tuple-like or struct-like, each potentially carrying data.
References: Rust enums .
trait
A Rust contract of associated functions, types and constants implemented for concrete types.
References: Rust traits .
function
A Rust fn item with typed parameters, a return type and any declared generic bounds.
References: Rust functions .
method
A Rust associated function declared on a type or trait.
A function with a self receiver is a method; its receiver determines borrowing or ownership. An associated function without a receiver, such as a constructor, is called with Type::function.
References: Rust associated functions and methods .
attribute
A Rust struct field in this reference, rather than a #[...] attribute annotation.
References: Rust fields .
constant
A Rust constant or enum variant shown as a named API value. Variants can carry fields.
References: Rust constants ; Rust enum variants .
typealias
A Rust type name referring to an existing type expression, without creating a distinct newtype.
References: Rust type aliases .
Modifiers
Modifiers add information about calling, implementing, or accessing a declaration. Their precise effect follows the language and the signature.
async
A Rust async fn that returns a future. Its body runs when that future is polled, rather than when the function is called.
References: Rust async functions .
overload
Multiple extracted declarations or implementations for this Rust item. Inspect the impl and trait context; Rust functions do not overload by parameter types.
References: Rust associated declarations .
Package context
Package labels identify where an API is supplied.
package
A Cargo package supplying one or more crates. Rust paths and imports refer to crates and their modules.
References: Cargo packages and targets .