Trait MaybeLabeled

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

Source

fn label(&self) -> Option<Cow<'_, str>>

Returns the human-readable label, if any, of the object.

Source

fn is_labeled(&self) -> bool

Checks whether the object has a human-readable label.

Implementors§