pub trait HasAnnotations {
Show 17 methods
// Required methods
fn has_annotations(&self) -> bool;
fn annotation_count(&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 with_annotations<I>(self, annotations: I) -> Self
where I: IntoIterator<Item = Annotation>,
Self: Sized { ... }
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 skos_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 annotation_count(&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 with_annotations<I>(self, annotations: I) -> Self
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 skos_definitions(&self) -> impl Iterator<Item = &LanguageString>
fn has_constraints(&self) -> bool
fn annotation_constraints(&self) -> impl Iterator<Item = &Constraint>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.