pub trait AnnotationsProvider {
// Required method
fn annotations(&self) -> Option<Vec<String>>;
// Provided method
fn has_annotation(&self, annotation: &str) -> bool { ... }
}Required Methods§
fn annotations(&self) -> Option<Vec<String>>
Provided Methods§
fn has_annotation(&self, annotation: &str) -> bool
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".