Expand description
The Rust representation of a component type (etype)
Functionsยง
- emit_
func_ param - Emit a Rust argument declaration, suitable for placing in the argument list of a function, for a given component function type parameter.
- emit_
func_ result - Emit a Rust version of a component function return type.
- emit_
toplevel - See [
emit_component
] - emit_
value - Emit a Rust type corresponding to a given value type. The resultant token stream will parse as a Rust type.
- emit_
var_ ref - Emit a token stream that references the given type variable in a type context, either directly if it is locally defined or by adding a parameter to the current type/trait/etc if necessary.
- emit_
var_ ref_ noff - Emit a token stream that references the given bound type variable, either directly if it is locally defined or by adding a parameter to the current type/trait/etc if necessary.
- emit_
var_ ref_ value - Emit a token stream that references the given type variable in a value context (e.g. a constructor), either directly if it is locally defined or by adding a parameter to the current type/trait/etc if necessary.
- numeric_
rtype - Format the name of the rust type corresponding to a component numeric type.