Trait preserves_schema::syntax::block::Emittable

source ·
pub trait Emittable: Debug {
    // Required method
    fn write_on(&self, f: &mut Formatter);
}
Expand description

All pretty-formattable items must implement this trait.

Required Methods§

source

fn write_on(&self, f: &mut Formatter)

Serializes self, as pretty-printed code, on f.

Implementations on Foreign Types§

source§

impl Emittable for &str

source§

fn write_on(&self, f: &mut Formatter)

source§

impl Emittable for String

source§

fn write_on(&self, f: &mut Formatter)

source§

impl<'a, E: Emittable> Emittable for &'a Vec<E>

source§

fn write_on(&self, f: &mut Formatter)

source§

impl<'a, E: Emittable> Emittable for &'a E

source§

fn write_on(&self, f: &mut Formatter)

Implementors§