Skip to main content

Module declaration

Module declaration 

Source
Expand description

Declarations: types, impl blocks, imports, constants, and extern functions.

Structs§

Callable
Return type and body of a callable impl.
Constant
A compile-time constant declaration.
ExternFunction
Foreign function declaration (extern fn).
ImplBlock
Makes a type callable: impl Type -> R { body }.
Newtype
A newtype declaration (type Name = Inner).
Parameter
A named, typed function parameter.

Enums§

Declaration
A top-level declaration.
ParameterList
Fixed-arity or variadic parameter list.

Type Aliases§

Module
A module is a sequence of declarations.