Expand description
Built-in TypeNode constants the framework + DSL ship out of
the box.
Every framework primitive’s type is listed here and submitted to
the inventory so the super::Lattice picks it up at startup.
Custom application or library types follow the same pattern from
any downstream crate.
Statics§
- TYPE_
ADDRESS_ VEC - Concrete
Vec<Address>- the ordered local-or-peer address list stamped on everywire.Sendenvelope, the carrier for the local address bag installed bybb::install, and the payload shape for the multi-addressAddressBooksyscalls. Distinct wire hash fromTYPE_MULTIADDRESSso receivers can disambiguate single vs many. - TYPE_
ANY - The universal supertype. Every other type is a (transitive)
subtype of
Any. Used as a port bound when no narrower constraint applies. - TYPE_
BYTES - Concrete
Bytes- opaque byte buffer. - TYPE_
COMPOSITE - Concrete
Composite- envelope holding N typed child payloads, each tagged with its sourcetype_hashand bincode-encoded bytes. The DSLg.bundlerecorder produces this on the output of aBundleop; the matchingUnbundleop decomposes it back into per-childBytesValueoutputs whoseValueInfoProto.denotationis stamped from the declared child-type list. Parent isAnybecause a composite can wrap any wire-eligible child types. - TYPE_
MULTIADDRESS - Concrete
Multiaddress- sequence of typed protocol segments describing a delivery path. The framework’s canonical address type; binds toframework::Addressinbb-runtime. Lives directly underAny(no abstract address parent — there is no second address-shaped concrete). The 0x03xx wire-hash range is reserved for address-related leaves. - TYPE_
PEER_ ID - Concrete
PeerId- canonical peer identifier (multihash). - TYPE_
PEER_ ID_ VEC - Concrete
Vec<PeerId>- fan-out destination list forg.net_out. - TYPE_
SCALAR - Abstract
Scalar- matches anyScalar<T>concrete leaf. - TYPE_
SCALAR_ F16 - Concrete
Scalar<F16>- single f16 value. - TYPE_
SCALAR_ F32 - Concrete
Scalar<F32>- single f32 value. - TYPE_
SCALAR_ F64 - Concrete
Scalar<F64>- single f64 value. - TYPE_
SCALAR_ I32 - Concrete
Scalar<I32>- single i32 value. - TYPE_
SCALAR_ U8 - Concrete
Scalar<U8>- single u8 value. - TYPE_
TENSOR - Abstract
Tensor- matches anyTensor<T>concrete leaf. - TYPE_
TENSOR_ BF16 - Concrete
Tensor<BF16>- dense bfloat16 tensor. Modern ML mixed-precision standard. Stored ashalf::bf16(binary newtype around the 16-bit bfloat bit pattern). - TYPE_
TENSOR_ BOOL - Concrete
Tensor<Bool>- dense bool tensor. Masks, predicates, comparison-op results. - TYPE_
TENSOR_ F16 - Concrete
Tensor<F16>- dense f16 tensor. - TYPE_
TENSOR_ F32 - Concrete
Tensor<F32>- dense f32 tensor. - TYPE_
TENSOR_ F64 - Concrete
Tensor<F64>- dense f64 tensor. - TYPE_
TENSOR_ I8 - Concrete
Tensor<I8>- dense i8 tensor. Edge quantization (the positional reason this is shipping as a v1 type, not a future feature: edge ML without int8 isn’t really edge ML). - TYPE_
TENSOR_ I16 - Concrete
Tensor<I16>- dense i16 tensor. Wider-than-byte quantization slots, audio samples. - TYPE_
TENSOR_ I32 - Concrete
Tensor<I32>- dense i32 tensor. - TYPE_
TENSOR_ I64 - Concrete
Tensor<I64>- dense i64 tensor. Index / embedding lookups (the canonical ‘Int’ kind default for most Burn underlying backends). - TYPE_
TENSOR_ U8 - Concrete
Tensor<U8>- dense u8 tensor. - TYPE_
TENSOR_ U16 - Concrete
Tensor<U16>- dense u16 tensor. Image bit-depth, count types. - TYPE_
TENSOR_ U32 - Concrete
Tensor<U32>- dense u32 tensor. Hash buckets, large counts. - TYPE_
TENSOR_ U64 - Concrete
Tensor<U64>- dense u64 tensor. Wide indices, IDs. - TYPE_
TRIGGER - Concrete
Trigger- zero-payload signal value. - TYPE_
WIRE_ REQ_ ID - Concrete
WireReqId- correlation token returned byg.net_out.
Functions§
- lookup_
denotation - Map a canonical denotation string to the corresponding
TypeNodestatic. ReturnsNonefor denotations the framework doesn’t recognize; the solver leaves those values atTYPE_ANY(custom types can declare their owntype_relationsto seed concrete types).