Enum sdml_core::model::Definition
source · pub enum Definition {
Datatype(DatatypeDef),
Entity(EntityDef),
Enum(EnumDef),
Event(EventDef),
Structure(StructureDef),
Union(UnionDef),
Property(PropertyDef),
}
Expand description
Corresponds to the grammar rule type_def
.
Variants§
Datatype(DatatypeDef)
Entity(EntityDef)
Enum(EnumDef)
Event(EventDef)
Structure(StructureDef)
Union(UnionDef)
Property(PropertyDef)
Trait Implementations§
source§impl Clone for Definition
impl Clone for Definition
source§fn clone(&self) -> Definition
fn clone(&self) -> Definition
Returns a copy of the value. Read more
1.0.0 · 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 Definition
impl Debug for Definition
source§impl<'de> Deserialize<'de> for Definition
impl<'de> Deserialize<'de> for Definition
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<DatatypeDef> for Definition
impl From<DatatypeDef> for Definition
source§fn from(v: DatatypeDef) -> Self
fn from(v: DatatypeDef) -> Self
Converts to this type from the input type.
source§impl From<EntityDef> for Definition
impl From<EntityDef> for Definition
source§impl From<EnumDef> for Definition
impl From<EnumDef> for Definition
source§impl From<EventDef> for Definition
impl From<EventDef> for Definition
source§impl From<PropertyDef> for Definition
impl From<PropertyDef> for Definition
source§fn from(v: PropertyDef) -> Self
fn from(v: PropertyDef) -> Self
Converts to this type from the input type.
source§impl From<StructureDef> for Definition
impl From<StructureDef> for Definition
source§fn from(v: StructureDef) -> Self
fn from(v: StructureDef) -> Self
Converts to this type from the input type.
source§impl From<UnionDef> for Definition
impl From<UnionDef> for Definition
source§impl ModelElement for Definition
impl ModelElement for Definition
fn ts_span(&self) -> Option<&Span>
fn set_ts_span(&mut self, span: Span)
fn unset_ts_span(&mut self)
fn name(&self) -> &Identifier
fn set_name(&mut self, name: Identifier)
fn is_complete(&self) -> bool
fn referenced_types(&self) -> HashSet<&IdentifierReference>
fn referenced_annotations(&self) -> HashSet<&IdentifierReference>
fn has_ts_span(&self) -> bool
Auto Trait Implementations§
impl RefUnwindSafe for Definition
impl Send for Definition
impl Sync for Definition
impl Unpin for Definition
impl UnwindSafe for Definition
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