Struct sdml_core::model::PropertyBody
source · pub struct PropertyBody { /* private fields */ }
Expand description
Corresponds to the grammar rule property_body
.
Implementations§
source§impl PropertyBody
impl PropertyBody
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 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(&mut self, value: PropertyRole)
pub fn extend_roles<I>(&mut self, extension: I)where I: IntoIterator<Item = PropertyRole>,
pub fn referenced_annotations(&self) -> HashSet<&IdentifierReference>
pub fn referenced_types(&self) -> HashSet<&IdentifierReference>
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
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