Struct sdml_core::model::definitions::PropertyBody
source · pub struct PropertyBody { /* private fields */ }
Expand description
Corresponds to the grammar rule property_body
.
Implementations§
source§impl PropertyBody
impl PropertyBody
pub fn has_roles(&self) -> bool
pub fn roles_len(&self) -> usize
pub fn roles(&self) -> impl Iterator<Item = &PropertyRole>
pub fn roles_mut(&mut self) -> impl Iterator<Item = &mut PropertyRole>
pub fn add_to_roles<I>(&mut self, value: I)where I: Into<PropertyRole>,
pub fn extend_roles<I>(&mut self, extension: I)where I: IntoIterator<Item = PropertyRole>,
Trait Implementations§
source§impl Clone for PropertyBody
impl Clone for PropertyBody
source§fn clone(&self) -> PropertyBody
fn clone(&self) -> PropertyBody
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 PropertyBody
impl Debug for PropertyBody
source§impl Default for PropertyBody
impl Default for PropertyBody
source§fn default() -> PropertyBody
fn default() -> PropertyBody
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PropertyBody
impl<'de> Deserialize<'de> for PropertyBody
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 PropertyBody
impl HasAnnotations for PropertyBody
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 HasOptionalBody<PropertyBody> for PropertyDef
impl HasOptionalBody<PropertyBody> for PropertyDef
source§impl HasSourceSpan for PropertyBody
impl HasSourceSpan for PropertyBody
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 PropertyBody
impl References for PropertyBody
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 PropertyBody
impl Serialize for PropertyBody
Auto Trait Implementations§
impl RefUnwindSafe for PropertyBody
impl Send for PropertyBody
impl Sync for PropertyBody
impl Unpin for PropertyBody
impl UnwindSafe for PropertyBody
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