pub trait FontSystem: Clone + Debug {
type Char: Character;
type CS: CSName<Self::Char>;
type Int: TeXInt;
type Font: Font<Char = Self::Char, CS = Self::CS, Dim = Self::Dim, Int = Self::Int>;
type Dim: TeXDimen;
// Required methods
fn null(&self) -> Self::Font;
fn new<ET: EngineTypes<Char = Self::Char, CSName = Self::CS>>(
aux: &mut EngineAux<ET>,
) -> Self;
fn new_font<S: AsRef<str>, F: FileSystem>(
&mut self,
path: S,
macroname: <Self::Font as Font>::CS,
fs: &mut F,
) -> Self::Font;
}Expand description
Required Associated Types§
Sourcetype CS: CSName<Self::Char>
type CS: CSName<Self::Char>
The type of control sequences used to give a name to a font; returned by e.g. \the when followed
by a font.
Required Methods§
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.