Skip to main content

IndexVariantName

Type Alias IndexVariantName 

Source
pub type IndexVariantName = NameDef<IndexVariant>;
Expand description

Name of an index variant (e.g., "Departure", "Correction").

Aliased Type§

pub struct IndexVariantName { /* private fields */ }

Implementations§

Source§

impl IndexVariantName

Source

pub fn range_step(n: impl Display) -> Self

Build the variant name for the n-th step of a range index (#0, #1, …). Centralises the "#"-prefix format so registry, parser, and evaluator can’t disagree on it.

Source

pub fn qualified_by(&self, index: &IndexName) -> QualifiedIndexVariantName

Pair this variant with its index name for qualified rendering.

Trait Implementations§

Source§

impl FormatEquivalent for IndexVariantName

Source§

fn format_equivalent(&self, other: &Self) -> bool

Returns true if self and other are equivalent up to formatting.