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
impl IndexVariantName
Sourcepub fn range_step(n: impl Display) -> Self
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.
Sourcepub fn qualified_by(&self, index: &IndexName) -> QualifiedIndexVariantName
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
impl FormatEquivalent for IndexVariantName
Source§fn format_equivalent(&self, other: &Self) -> bool
fn format_equivalent(&self, other: &Self) -> bool
Returns
true if self and other are equivalent up to formatting.