pub trait CSHandler<C: Character, CS: CSName<C>>: Default + Clone {
type Resolved<'a>: ResolvedCSName<'a, C>
where Self: 'a;
// Required methods
fn cs_from_str(&mut self, s: &str) -> CS;
fn cs_from_chars(&mut self, v: &[C]) -> CS;
fn resolve<'a>(&'a self, cs: &'a CS) -> Self::Resolved<'a>;
fn par(&self) -> CS;
fn empty_str(&self) -> CS;
fn get(&self, s: &str) -> Option<CS>;
}
Expand description
Handles control sequence names - conversion from/to strings, displaying etc.
Required Associated Types§
Sourcetype Resolved<'a>: ResolvedCSName<'a, C>
where
Self: 'a
type Resolved<'a>: ResolvedCSName<'a, C> where Self: 'a
The type of the resolved control sequence name (for displaying / iterating over the underlying
Character
s.
Required Methods§
Sourcefn cs_from_str(&mut self, s: &str) -> CS
fn cs_from_str(&mut self, s: &str) -> CS
Creates a new control sequence name from a string.
Sourcefn cs_from_chars(&mut self, v: &[C]) -> CS
fn cs_from_chars(&mut self, v: &[C]) -> CS
Creates a new control sequence name from a vector of characters.
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.