Struct sdml_core::model::annotations::AnnotationOnlyBody
source · pub struct AnnotationOnlyBody { /* private fields */ }
Expand description
Corresponds to the grammar rule annotation_only_body
.
Trait Implementations§
source§impl Clone for AnnotationOnlyBody
impl Clone for AnnotationOnlyBody
source§fn clone(&self) -> AnnotationOnlyBody
fn clone(&self) -> AnnotationOnlyBody
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 AnnotationOnlyBody
impl Debug for AnnotationOnlyBody
source§impl Default for AnnotationOnlyBody
impl Default for AnnotationOnlyBody
source§fn default() -> AnnotationOnlyBody
fn default() -> AnnotationOnlyBody
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for AnnotationOnlyBody
impl<'de> Deserialize<'de> for AnnotationOnlyBody
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 From<AnnotationOnlyBody> for Vec<Annotation>
impl From<AnnotationOnlyBody> for Vec<Annotation>
source§fn from(value: AnnotationOnlyBody) -> Self
fn from(value: AnnotationOnlyBody) -> Self
Converts to this type from the input type.
source§impl From<Vec<Annotation>> for AnnotationOnlyBody
impl From<Vec<Annotation>> for AnnotationOnlyBody
source§fn from(annotations: Vec<Annotation>) -> Self
fn from(annotations: Vec<Annotation>) -> Self
Converts to this type from the input type.
source§impl HasAnnotations for AnnotationOnlyBody
impl HasAnnotations for AnnotationOnlyBody
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 HasSourceSpan for AnnotationOnlyBody
impl HasSourceSpan for AnnotationOnlyBody
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 AnnotationOnlyBody
impl References for AnnotationOnlyBody
fn referenced_annotations<'a>( &'a self, names: &mut HashSet<&'a IdentifierReference> )
fn referenced_types<'a>(&'a self, names: &mut HashSet<&'a IdentifierReference>)
source§impl Serialize for AnnotationOnlyBody
impl Serialize for AnnotationOnlyBody
source§impl Validate for AnnotationOnlyBody
impl Validate for AnnotationOnlyBody
Auto Trait Implementations§
impl RefUnwindSafe for AnnotationOnlyBody
impl Send for AnnotationOnlyBody
impl Sync for AnnotationOnlyBody
impl Unpin for AnnotationOnlyBody
impl UnwindSafe for AnnotationOnlyBody
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