pub type ConstructorName = NameDef<Constructor>;Expand description
Name of a tagged-union constructor (e.g., "LowThrust", "Coast").
Constructors live in a separate namespace from types: a single lexeme can name both a type and a constructor (and will, once the single-variant sugar lands). Keeping these distinct marker namespaces enforces the boundary at the type level.
Aliased Type§
pub struct ConstructorName { /* private fields */ }Trait Implementations§
Source§impl FormatEquivalent for ConstructorName
impl FormatEquivalent for ConstructorName
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.