pub trait MaybeLabeled {
// Provided methods
fn label(&self) -> Option<Cow<'_, str>> { ... }
fn is_labeled(&self) -> bool { ... }
}Expand description
A trait for objects that may have a human-readable label.
Provided Methods§
Sourcefn label(&self) -> Option<Cow<'_, str>>
fn label(&self) -> Option<Cow<'_, str>>
Returns the human-readable label, if any, of the object.
Sourcefn is_labeled(&self) -> bool
fn is_labeled(&self) -> bool
Checks whether the object has a human-readable label.