/// A newtype over [String] to represent a single quote. /// [Quote] does not implement [PartialEq] or [Eq] as, on principle, two /// quotes may be comprised of the same contents whilst still /// representing distinct quotes in practice (e.g. two different lines of dialogue which happen to be the same). #[derive(Debug, Clone)] pub struct Quote(String); impl> From for Quote { fn from(value: S) -> Self { Self(value.as_ref().to_owned()) } } impl From for String { fn from(value: Quote) -> Self { value.0 } } impl Quote { pub fn get(&self) -> &str { &self.0 } }