FieldRef

A reference to a field in a struct

The compiler sometimes rejects passing fields by alias, or complains about missing this (meaning it tries to evaluate the value). Sometimes, it also discards the UDAs.

To prevent this from happening, we always pass around a FieldRef, which wraps the parent struct type (T), the name of the field as FieldName, and other informations.

To avoid any issue, eponymous usage is also avoided, hence the reference needs to be accessed using Ref.

Members

Aliases

FieldName
alias FieldName = name

The name of the field in the struct itself

Type
alias Type = typeof(Ref)

Type of the field

Manifest constants

Default
enum Default;

Default value of the field (may or may not be Type.init)

Optional
enum Optional;

Evaluates to true if this field is to be considered optional (does not need to be present in the YAML document)

Variables

Name
auto Name;
Undocumented in source.
Name
auto Name;
Undocumented in source.
Pattern
auto Pattern;
Undocumented in source.
Pattern
auto Pattern;
Undocumented in source.

Meta