pub trait HasAnnotations {
Show 16 methods
// Required methods
fn has_annotations(&self) -> bool;
fn annotations_len(&self) -> usize;
fn annotations(&self) -> impl Iterator<Item = &Annotation>;
fn annotations_mut(&mut self) -> impl 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) -> impl Iterator<Item = &AnnotationProperty> { ... }
fn has_rdf_type(&self, type_id: &IdentifierReference) -> bool { ... }
fn rdf_types(&self) -> impl Iterator<Item = &IdentifierReference> { ... }
fn preferred_label(&self) -> impl Iterator<Item = &LanguageString> { ... }
fn alternate_labels(&self) -> impl Iterator<Item = &LanguageString> { ... }
fn descriptions(&self) -> impl Iterator<Item = &LanguageString> { ... }
fn definitions(&self) -> impl Iterator<Item = &LanguageString> { ... }
fn has_constraints(&self) -> bool { ... }
fn annotation_constraints(&self) -> impl Iterator<Item = &Constraint> { ... }
}
Required Methods§
fn has_annotations(&self) -> bool
fn annotations_len(&self) -> usize
fn annotations(&self) -> impl Iterator<Item = &Annotation>
fn annotations_mut(&mut self) -> impl 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) -> impl Iterator<Item = &AnnotationProperty>
fn has_rdf_type(&self, type_id: &IdentifierReference) -> bool
fn rdf_types(&self) -> impl Iterator<Item = &IdentifierReference>
fn preferred_label(&self) -> impl Iterator<Item = &LanguageString>
fn alternate_labels(&self) -> impl Iterator<Item = &LanguageString>
fn descriptions(&self) -> impl Iterator<Item = &LanguageString>
fn definitions(&self) -> impl Iterator<Item = &LanguageString>
fn has_constraints(&self) -> bool
fn annotation_constraints(&self) -> impl Iterator<Item = &Constraint>
Object Safety§
This trait is not object safe.