Enum ruststep::ast::Name[][src]

pub enum Name {
    Entity(u64),
    Value(u64),
    ConstantEntity(String),
    ConstantValue(String),
}
Expand description

Name of an entity instance or a value

Corresponding to parser::token::rhs_occurrence_name and parser::token::lhs_occurrence_name

Variants

Entity(u64)

Like #11, corresponds to parser::token::entity_instance_name

Tuple Fields of Entity

0: u64
Value(u64)

Like @11, corresponds to parser::token::value_instance_name

Tuple Fields of Value

0: u64
ConstantEntity(String)

Like #CONST_ENTITY, corresponds to parser::token::constant_entity_name

Tuple Fields of ConstantEntity

0: String
ConstantValue(String)

Like @CONST_VALUE, corresponds to parser::token::constant_value_name

Tuple Fields of ConstantValue

0: String

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

The error type that can be returned if some error occurs during deserialization. Read more

The Visitor that will be used to deserialize the content of the enum variant. Read more

variant is called to identify which variant to deserialize. Read more

variant is called to identify which variant to deserialize. Read more

Performs the conversion.

Performs the conversion.

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

The error type that can be returned if some error occurs during deserialization. Must match the error type of our EnumAccess. Read more

Called when deserializing a variant with no values. Read more

Called when deserializing a variant with a single value. Read more

Called when deserializing a tuple-like variant. Read more

Called when deserializing a struct-like variant. Read more

Called when deserializing a variant with a single value. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.