Module meta
Modules
- Contains methods on the built-in
Typetype used for representing a type in the source program.
Type aliases
Functions
- Issues an error diagnostic at the given location with the given primary message and an optional secondary message. Unlike a comptime panic, current execution will continue allowing possibly multiple errors to be issued.
make_implis a helper function to make a simple impl, usually while deriving a trait. This impl has a couple assumptions:- The impl only has one function, with the signature
function_signature - The trait itself does not have any generics.
- The impl only has one function, with the signature
- Returns the type of any value
- Calling unquote as a macro (via
unquote!(arg)) will unquote its argument. Since this is the effect!already does,unquoteitself does not need to do anything besides return its argument. - Issues a warning diagnostic at the given location with the given primary message and an optional secondary message. Execution continues after this function is called.