Struct sdml_core::model::definitions::UnionDef
source · pub struct UnionDef { /* private fields */ }
Expand description
Corresponds to the grammar rule union_def
.
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for UnionDef
impl<'de> Deserialize<'de> for UnionDef
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<UnionDef> for Definition
impl From<UnionDef> for Definition
source§impl HasName for UnionDef
impl HasName for UnionDef
fn name(&self) -> &Identifier
fn set_name(&mut self, name: Identifier)
source§impl HasOptionalBody<UnionBody> for UnionDef
impl HasOptionalBody<UnionBody> for UnionDef
source§impl HasSourceSpan for UnionDef
impl HasSourceSpan for UnionDef
fn with_source_span(self, span: Span) -> Self
fn source_span(&self) -> Option<&Span>
fn set_source_span(&mut self, span: Span)
fn unset_source_span(&mut self)
fn has_source_span(&self) -> bool
source§impl References for UnionDef
impl References for UnionDef
fn referenced_annotations<'a>( &'a self, names: &mut HashSet<&'a IdentifierReference> )
fn referenced_types<'a>(&'a self, names: &mut HashSet<&'a IdentifierReference>)
Auto Trait Implementations§
impl RefUnwindSafe for UnionDef
impl Send for UnionDef
impl Sync for UnionDef
impl Unpin for UnionDef
impl UnwindSafe for UnionDef
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