Struct sdml_core::model::definitions::EnumBody
source · pub struct EnumBody { /* private fields */ }
Expand description
Corresponds to the grammar rule enum_body
.
Trait Implementations§
source§impl<'de> Deserialize<'de> for EnumBody
impl<'de> Deserialize<'de> for EnumBody
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 HasAnnotations for EnumBody
impl HasAnnotations for EnumBody
fn has_annotations(&self) -> bool
fn annotations_len(&self) -> usize
fn annotations(&self) -> Box<dyn Iterator<Item = &Annotation> + '_>
fn annotations_mut(&mut self) -> Box<dyn Iterator<Item = &mut Annotation> + '_>
fn add_to_annotations<I>(&mut self, value: I)where
I: Into<Annotation>,
fn extend_annotations<I>(&mut self, extension: I)where
I: IntoIterator<Item = Annotation>,
fn has_annotation_properties(&self) -> bool
fn annotation_properties( &self ) -> Box<dyn Iterator<Item = &AnnotationProperty> + '_>
fn preferred_label(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn alternate_labels(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn descriptions(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn definitions(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn has_constraints(&self) -> bool
fn annotation_constraints<I>( &self ) -> Box<dyn Iterator<Item = &Constraint> + '_>
source§impl HasOptionalBody<EnumBody> for EnumDef
impl HasOptionalBody<EnumBody> for EnumDef
source§impl HasSourceSpan for EnumBody
impl HasSourceSpan for EnumBody
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 HasVariants<ValueVariant> for EnumBody
impl HasVariants<ValueVariant> for EnumBody
fn has_variants(&self) -> bool
fn variants_len(&self) -> usize
fn variants(&self) -> Box<dyn Iterator<Item = &ValueVariant> + '_>
fn variants_mut(&mut self) -> Box<dyn Iterator<Item = &mut ValueVariant> + '_>
fn add_to_variants(&mut self, value: ValueVariant)
fn extend_variants<I>(&mut self, extension: I)where
I: IntoIterator<Item = ValueVariant>,
source§impl References for EnumBody
impl References for EnumBody
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 EnumBody
impl Send for EnumBody
impl Sync for EnumBody
impl Unpin for EnumBody
impl UnwindSafe for EnumBody
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