pub enum DimensionIdentity {
Source(SourceEntity),
Identity(Member),
}Expand description
Corresponds to the anonymous grammar rule in dimension_body.
Variants§
Source(SourceEntity)
Identity(Member)
Implementations§
Source§impl DimensionIdentity
impl DimensionIdentity
pub const fn is_source_entity(&self) -> bool
pub const fn as_source_entity(&self) -> Option<&SourceEntity>
pub const fn is_identity_member(&self) -> bool
pub const fn as_identity_member(&self) -> Option<&Member>
Trait Implementations§
Source§impl Clone for DimensionIdentity
impl Clone for DimensionIdentity
Source§fn clone(&self) -> DimensionIdentity
fn clone(&self) -> DimensionIdentity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DimensionIdentity
impl Debug for DimensionIdentity
Source§impl<'de> Deserialize<'de> for DimensionIdentity
impl<'de> Deserialize<'de> for DimensionIdentity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Member> for DimensionIdentity
impl From<&Member> for DimensionIdentity
Source§impl From<&SourceEntity> for DimensionIdentity
impl From<&SourceEntity> for DimensionIdentity
Source§fn from(value: &SourceEntity) -> Self
fn from(value: &SourceEntity) -> Self
Converts to this type from the input type.
Source§impl From<Member> for DimensionIdentity
impl From<Member> for DimensionIdentity
Source§impl From<SourceEntity> for DimensionIdentity
impl From<SourceEntity> for DimensionIdentity
Source§fn from(value: SourceEntity) -> Self
fn from(value: SourceEntity) -> Self
Converts to this type from the input type.
Source§impl MaybeIncomplete for DimensionIdentity
impl MaybeIncomplete for DimensionIdentity
fn is_incomplete(&self, top: &Module, cache: &impl ModuleStore) -> bool
Source§impl References for DimensionIdentity
impl References for DimensionIdentity
fn referenced_types<'a>(&'a self, names: &mut BTreeSet<&'a IdentifierReference>)
fn referenced_annotations<'a>( &'a self, names: &mut BTreeSet<&'a IdentifierReference>, )
Source§impl Serialize for DimensionIdentity
impl Serialize for DimensionIdentity
Source§impl Validate for DimensionIdentity
impl Validate for DimensionIdentity
fn validate( &self, top: &Module, cache: &impl ModuleStore, loader: &impl ModuleLoader, check_constraints: bool, )
Auto Trait Implementations§
impl Freeze for DimensionIdentity
impl RefUnwindSafe for DimensionIdentity
impl Send for DimensionIdentity
impl Sync for DimensionIdentity
impl Unpin for DimensionIdentity
impl UnsafeUnpin for DimensionIdentity
impl UnwindSafe for DimensionIdentity
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