Trait HasAnnotations

Source
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§

Source

fn has_annotations(&self) -> bool

Source

fn annotation_count(&self) -> usize

Source

fn annotations(&self) -> impl Iterator<Item = &Annotation>

Source

fn annotations_mut(&mut self) -> impl Iterator<Item = &mut Annotation>

Source

fn add_to_annotations<I>(&mut self, value: I)
where I: Into<Annotation>,

Source

fn extend_annotations<I>(&mut self, extension: I)
where I: IntoIterator<Item = Annotation>,

Provided Methods§

Source

fn with_annotations<I>(self, annotations: I) -> Self
where I: IntoIterator<Item = Annotation>, Self: Sized,

Source

fn has_annotation_properties(&self) -> bool

Source

fn annotation_properties(&self) -> impl Iterator<Item = &AnnotationProperty>

Source

fn has_rdf_type(&self, type_id: &IdentifierReference) -> bool

Source

fn rdf_types(&self) -> impl Iterator<Item = &IdentifierReference>

Source

fn preferred_label(&self) -> impl Iterator<Item = &LanguageString>

Source

fn alternate_labels(&self) -> impl Iterator<Item = &LanguageString>

Source

fn descriptions(&self) -> impl Iterator<Item = &LanguageString>

Source

fn skos_definitions(&self) -> impl Iterator<Item = &LanguageString>

Source

fn has_constraints(&self) -> bool

Source

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.

Implementors§