pub trait LabelProvider: Sized {
// Required method
fn set_label_map(self, labels: HashMap<String, String>) -> Self;
// Provided method
fn set_labels<T: ToString>(self, labels: Vec<(T, T)>) -> Self { ... }
}Required Methods§
fn set_label_map(self, labels: HashMap<String, String>) -> Self
Provided Methods§
Sourcefn set_labels<T: ToString>(self, labels: Vec<(T, T)>) -> Self
fn set_labels<T: ToString>(self, labels: Vec<(T, T)>) -> Self
helper for setting list of labels
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.