Struct sdml_core::model::EntityBody
source · pub struct EntityBody { /* private fields */ }
Expand description
Corresponds to the grammar rule entity_body
.
Implementations§
source§impl EntityBody
impl EntityBody
pub fn new(identity: IdentityMember) -> Self
pub fn with_ts_span(self, ts_span: Span) -> Self
pub fn has_ts_span(&self) -> bool
pub fn ts_span(&self) -> Option<&Span>
pub fn set_ts_span(&mut self, span: Span)
pub fn unset_ts_span(&mut self)
pub fn has_annotations(&self) -> bool
pub fn annotations_len(&self) -> usize
pub fn annotations(&self) -> impl Iterator<Item = &Annotation>
pub fn annotations_mut(&mut self) -> impl Iterator<Item = &mut Annotation>
pub fn add_to_annotations<I>(&mut self, value: I)where I: Into<Annotation>,
pub fn extend_annotations<I>(&mut self, extension: I)where I: IntoIterator<Item = Annotation>,
pub fn annotation_properties(&self) -> impl Iterator<Item = &AnnotationProperty>
pub fn annotation_constraints(&self) -> impl Iterator<Item = &Constraint>
pub fn identity(&self) -> &IdentityMember
pub fn set_identity(&mut self, identity: IdentityMember)
pub fn has_members(&self) -> bool
pub fn members_len(&self) -> usize
pub fn members(&self) -> impl Iterator<Item = &EntityMember>
pub fn members_mut(&mut self) -> impl Iterator<Item = &mut EntityMember>
pub fn add_to_members<I>(&mut self, value: I)where I: Into<EntityMember>,
pub fn extend_members<I>(&mut self, extension: I)where I: IntoIterator<Item = EntityMember>,
pub fn has_groups(&self) -> bool
pub fn groups_len(&self) -> usize
pub fn groups(&self) -> impl Iterator<Item = &EntityGroup>
pub fn groups_mut(&mut self) -> impl Iterator<Item = &mut EntityGroup>
pub fn add_to_groups<I>(&mut self, value: I)where I: Into<EntityGroup>,
pub fn extend_groups<I>(&mut self, extension: I)where I: IntoIterator<Item = EntityGroup>,
pub fn flat_members(&self) -> impl Iterator<Item = &EntityMember>
pub fn is_complete(&self) -> bool
pub fn referenced_annotations(&self) -> HashSet<&IdentifierReference>
pub fn referenced_types(&self) -> HashSet<&IdentifierReference>
Trait Implementations§
source§impl Clone for EntityBody
impl Clone for EntityBody
source§fn clone(&self) -> EntityBody
fn clone(&self) -> EntityBody
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 EntityBody
impl Debug for EntityBody
source§impl<'de> Deserialize<'de> for EntityBody
impl<'de> Deserialize<'de> for EntityBody
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
Auto Trait Implementations§
impl RefUnwindSafe for EntityBody
impl Send for EntityBody
impl Sync for EntityBody
impl Unpin for EntityBody
impl UnwindSafe for EntityBody
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