Trait sdml_core::model::annotations::HasAnnotations
source · pub trait HasAnnotations {
Show 14 methods
// Required methods
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>;
// Provided methods
fn has_annotation_properties(&self) -> bool { ... }
fn annotation_properties(
&self
) -> Box<dyn Iterator<Item = &AnnotationProperty> + '_> { ... }
fn preferred_label(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_> { ... }
fn alternate_labels(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_> { ... }
fn descriptions(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_> { ... }
fn definitions(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_> { ... }
fn has_constraints(&self) -> bool { ... }
fn annotation_constraints<I>(
&self
) -> Box<dyn Iterator<Item = &Constraint> + '_> { ... }
}
Required Methods§
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>,
Provided Methods§
fn has_annotation_properties(&self) -> bool
fn annotation_properties( &self ) -> Box<dyn Iterator<Item = &AnnotationProperty> + '_>
fn preferred_label(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn alternate_labels(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn descriptions(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn definitions(&self) -> Box<dyn Iterator<Item = &LanguageString> + '_>
fn has_constraints(&self) -> bool
fn annotation_constraints<I>( &self ) -> Box<dyn Iterator<Item = &Constraint> + '_>
Object Safety§
This trait is not object safe.