Method in macro · TypeDecl compiler

TypeDecl::fields

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

Class fields (empty for an enum).

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

Returns#

Vec<Field>

See also#

↑ ↓ navigate ↵ open