Skip to main content

Typography

Trait Typography 

Source
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§

Source

fn decide(&self, _: &Mark) -> (Space, Space)

Source

fn output(&self, _: &Mark) -> &'static str

Source

fn open_dialog(&self, _: PreviousDialogue) -> Option<&'static Atom<'static>>

Source

fn close_dialog(&self, _: bool) -> Option<&'static Atom<'static>>

Provided Methods§

Source

fn before_atom<'a>(&self, atom: &Atom<'a>) -> Space

Source

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".

Implementors§