PrettyHelper

Trait PrettyHelper 

Source
pub trait PrettyHelper<'a>: Sized {
    // Required method
    fn surround(self, pre: &'a str, post: &'a str) -> Self;

    // Provided methods
    fn parens(self) -> Self { ... }
    fn brackets(self) -> Self { ... }
    fn braces(self) -> Self { ... }
    fn quotes(self) -> Self { ... }
    fn stars(self) -> Self { ... }
    fn begin_end(self) -> Self { ... }
    fn case_endcase(self) -> Self { ... }
    fn func_endfunc(self) -> Self { ... }
    fn module_endmodule(self) -> Self { ... }
}

Required Methods§

Source

fn surround(self, pre: &'a str, post: &'a str) -> Self

Provided Methods§

Source

fn parens(self) -> Self

Source

fn brackets(self) -> Self

Source

fn braces(self) -> Self

Source

fn quotes(self) -> Self

Source

fn stars(self) -> Self

Source

fn begin_end(self) -> Self

Source

fn case_endcase(self) -> Self

Source

fn func_endfunc(self) -> Self

Source

fn module_endmodule(self) -> Self

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, A> PrettyHelper<'a> for RcDoc<'a, A>

Source§

fn surround(self, l: &'a str, r: &'a str) -> Self

Implementors§