TypeRef
class TypeRef Import
Source: use macro::{TypeRef}; compiler/src/prelude/macro.hy A type annotation as written (not resolved): Vec<int>, json::Value.
Fields#
| Field | Type | Description |
|---|---|---|
text | string | |
head_name | string | |
arg_refs | Vec<TypeRef> |
Methods#
| Name | Description |
|---|---|
str | The whole annotation, e.g. |
src | |
head | The type constructor, e.g. |
args | Generic arguments, e.g. |
See also#
VecCode: Generated coil source: declarations, an expression, statements or a type.Ident: A name as written in source.Expr: A function-style macro argument as written:f(1),a + b,"text".AttrArg: Onekey = value(or positionalvalue, withkey == "") attribute argument.Attr:#[name(args)]on a declaration, field or variant.Field: A class field, or a field of a record enum variant.Variant: One enum variant.