pub trait Typography {
// Required methods
fn decide(&self, _: &Mark) -> (Space, Space);
fn output(&self, _: &Mark) -> &'static str;
fn open_dialog(&self, _: PreviousDialogue) -> Option<&'static Atom<'static>>;
fn close_dialog(&self, _: bool) -> Option<&'static Atom<'static>>;
// Provided methods
fn before_atom<'a>(&self, atom: &Atom<'a>) -> Space { ... }
fn after_atom<'a>(&self, atom: &Atom<'a>) -> Space { ... }
}Required Methods§
fn decide(&self, _: &Mark) -> (Space, Space)
fn output(&self, _: &Mark) -> &'static str
fn open_dialog(&self, _: PreviousDialogue) -> Option<&'static Atom<'static>>
fn close_dialog(&self, _: bool) -> Option<&'static Atom<'static>>
Provided Methods§
fn before_atom<'a>(&self, atom: &Atom<'a>) -> Space
fn after_atom<'a>(&self, atom: &Atom<'a>) -> Space
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".