For the complete documentation index, see llms.txt.
aztec-nr - std::meta::type_def

Struct TypeGeneric

pub comptime struct TypeGeneric
{ /* private fields */ }

A generic parameter of a TypeDefinition, returned from TypeDefinition::generics.

Implementations

impl TypeGeneric

pub comptime fn typ(self) -> Type

The generic's type variable.

pub comptime fn numeric_type(self) -> Option<Type>

If this generic is numeric, the numeric type; otherwise None.