PrettySimple

Trait PrettySimple 

Source
pub trait PrettySimple<'a>: Sized {
    // Required method
    fn pprint(self) -> RcDoc<'a>;

    // Provided method
    fn append<P: PrettySimple<'a>>(self, other: P) -> RcDoc<'a> { ... }
}

Required Methods§

Source

fn pprint(self) -> RcDoc<'a>

Provided Methods§

Source

fn append<P: PrettySimple<'a>>(self, other: P) -> RcDoc<'a>

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.

Implementations on Foreign Types§

Source§

impl<'a> PrettySimple<'a> for &'a str

Source§

fn pprint(self) -> RcDoc<'a>

Source§

impl<'a> PrettySimple<'a> for RcDoc<'a>

Source§

fn pprint(self) -> RcDoc<'a>

Implementors§

Source§

impl<'a> PrettySimple<'a> for Ln