Struct sdml_core::model::definitions::StructureBody
source · pub struct StructureBody { /* private fields */ }
Expand description
Corresponds to the grammar rule structure_body
.
Implementations§
source§impl StructureBody
impl StructureBody
pub fn flat_members(&self) -> impl Iterator<Item = &Member>
Trait Implementations§
source§impl Clone for StructureBody
impl Clone for StructureBody
source§fn clone(&self) -> StructureBody
fn clone(&self) -> StructureBody
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 StructureBody
impl Debug for StructureBody
source§impl Default for StructureBody
impl Default for StructureBody
source§fn default() -> StructureBody
fn default() -> StructureBody
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for StructureBody
impl<'de> Deserialize<'de> for StructureBody
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 StructureBody
impl HasAnnotations for StructureBody
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 has_constraints(&self) -> bool
fn annotation_constraints<I>( &self ) -> Box<dyn Iterator<Item = &Constraint> + '_>
source§impl HasGroups for StructureBody
impl HasGroups for StructureBody
fn has_groups(&self) -> bool
fn groups_len(&self) -> usize
fn groups(&self) -> Box<dyn Iterator<Item = &MemberGroup> + '_>
fn groups_mut(&mut self) -> Box<dyn Iterator<Item = &mut MemberGroup> + '_>
fn add_to_groups(&mut self, value: MemberGroup)
fn extend_groups<I>(&mut self, extension: I)where I: IntoIterator<Item = MemberGroup>,
source§impl HasMembers for StructureBody
impl HasMembers for StructureBody
fn has_members(&self) -> bool
fn members_len(&self) -> usize
fn members(&self) -> Box<dyn Iterator<Item = &Member> + '_>
fn members_mut(&mut self) -> Box<dyn Iterator<Item = &mut Member> + '_>
fn add_to_members(&mut self, value: Member)
fn extend_members<I>(&mut self, extension: I)where I: IntoIterator<Item = Member>,
source§impl HasOptionalBody<StructureBody> for EventDef
impl HasOptionalBody<StructureBody> for EventDef
source§impl HasOptionalBody<StructureBody> for StructureDef
impl HasOptionalBody<StructureBody> for StructureDef
source§impl HasSourceSpan for StructureBody
impl HasSourceSpan for StructureBody
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 StructureBody
impl References for StructureBody
fn referenced_types<'a>(&'a self, names: &mut HashSet<&'a IdentifierReference>)
fn referenced_annotations<'a>( &'a self, names: &mut HashSet<&'a IdentifierReference> )
source§impl Serialize for StructureBody
impl Serialize for StructureBody
source§impl Validate for StructureBody
impl Validate for StructureBody
Auto Trait Implementations§
impl RefUnwindSafe for StructureBody
impl Send for StructureBody
impl Sync for StructureBody
impl Unpin for StructureBody
impl UnwindSafe for StructureBody
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