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
Value(u64)
Like @11
, corresponds to parser::token::value_instance_name
ConstantEntity(String)
Like #CONST_ENTITY
, corresponds to parser::token::constant_entity_name
ConstantValue(String)
Like @CONST_VALUE
, corresponds to parser::token::constant_value_name
Trait Implementations§
Source§impl<'de, 'name> EnumAccess<'de> for &'name Name
impl<'de, 'name> EnumAccess<'de> for &'name Name
Source§type Error = Error
type Error = Error
The error type that can be returned if some error occurs during
deserialization.
Source§type Variant = &'name Name
type Variant = &'name Name
The
Visitor
that will be used to deserialize the content of the enum
variant.Source§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 moreSource§impl<T> From<Name> for PlaceHolder<T>
impl<T> From<Name> for PlaceHolder<T>
Source§impl<'de, 'name> VariantAccess<'de> for &'name Name
impl<'de, 'name> VariantAccess<'de> for &'name Name
Source§type Error = Error
type Error = Error
The error type that can be returned if some error occurs during
deserialization. Must match the error type of our
EnumAccess
.Source§fn unit_variant(self) -> Result<()>
fn unit_variant(self) -> Result<()>
Called when deserializing a variant with no values. Read more
Source§fn newtype_variant_seed<D>(self, seed: D) -> Result<D::Value>where
D: DeserializeSeed<'de>,
fn newtype_variant_seed<D>(self, seed: D) -> Result<D::Value>where
D: DeserializeSeed<'de>,
Called when deserializing a variant with a single value. Read more
Source§fn tuple_variant<V>(self, _len: usize, _visitor: V) -> Result<V::Value>where
V: Visitor<'de>,
fn tuple_variant<V>(self, _len: usize, _visitor: V) -> Result<V::Value>where
V: Visitor<'de>,
Called when deserializing a tuple-like variant. Read more
Source§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
Source§fn newtype_variant<T>(self) -> Result<T, Self::Error>where
T: Deserialize<'de>,
fn newtype_variant<T>(self) -> Result<T, Self::Error>where
T: Deserialize<'de>,
Called when deserializing a variant with a single value. Read more
impl StructuralPartialEq for Name
Auto Trait Implementations§
impl Freeze for Name
impl RefUnwindSafe for Name
impl Send for Name
impl Sync for Name
impl Unpin for Name
impl UnwindSafe for Name
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more