Method in macro · TypeDecl compiler

TypeDecl::variants

pub fn variants() -> Vec<Variant>
Import
use macro::{TypeDecl};
Source: compiler/src/prelude/macro.hy

Enum variants (empty for a class).

Called on a TypeDecl value as value.variants(…).

Returns#

Vec<Variant>

See also#

↑ ↓ navigate ↵ open