Enum ruststep::ast::Name [−][src]
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
The error type that can be returned if some error occurs during deserialization. Read more
type Variant = Self
type Variant = Self
The Visitor
that will be used to deserialize the content of the enum
variant. Read more
fn variant_seed<V>(self, seed: V) -> Result<(V::Value, Self::Variant)> where
V: DeserializeSeed<'de>,
fn variant_seed<V>(self, seed: V) -> Result<(V::Value, Self::Variant)> where
V: DeserializeSeed<'de>,
variant
is called to identify which variant to deserialize. Read more
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
fn struct_variant<V>(
self,
_fields: &'static [&'static str],
_visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
fn struct_variant<V>(
self,
_fields: &'static [&'static str],
_visitor: V
) -> Result<V::Value> where
V: Visitor<'de>,
Called when deserializing a struct-like variant. Read more
Called when deserializing a variant with a single value. Read more
Auto Trait Implementations
impl RefUnwindSafe for Name
impl UnwindSafe for Name
Blanket Implementations
Mutably borrows from an owned value. Read more