//! See [`Label`] use std::fmt; /// A type to specify UI label, like an entry in the list of assists. Enforces /// proper casing: /// /// Frobnicate bar /// /// Note the upper-case first letter and the absence of `.` at the end. #[derive(Clone)] pub struct Label(String); impl PartialEq for Label { fn eq(&self, other: &str) -> bool { self.0 == other } } impl PartialEq<&'_ str> for Label { fn eq(&self, other: &&str) -> bool { self == *other } } impl From