[][src]Trait nu_source::PrettyDebug

pub trait PrettyDebug {
    pub fn pretty(&self) -> DebugDocBuilder;

    pub fn to_doc(&self) -> DebugDoc { ... }
pub fn pretty_doc(
        &self
    ) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation> { ... }
pub fn pretty_builder(
        &self
    ) -> DocBuilder<'static, BoxAllocator, ShellAnnotation> { ... }
pub fn display(&self) -> String { ... }
pub fn plain_string(&self, width: usize) -> String { ... }
pub fn colored_string(&self, width: usize) -> String { ... } }

Required methods

pub fn pretty(&self) -> DebugDocBuilder[src]

Loading content...

Provided methods

pub fn to_doc(&self) -> DebugDoc[src]

pub fn pretty_doc(
    &self
) -> Doc<'static, BoxDoc<'static, ShellAnnotation>, ShellAnnotation>
[src]

pub fn pretty_builder(
    &self
) -> DocBuilder<'static, BoxAllocator, ShellAnnotation>
[src]

pub fn display(&self) -> String[src]

A convenience method that prints out the document without colors in 70 columns. Generally, you should use plain_string or colored_string if possible, but display() can be useful for trace lines and things like that, where you don't have control over the terminal.

pub fn plain_string(&self, width: usize) -> String[src]

pub fn colored_string(&self, width: usize) -> String[src]

Loading content...

Implementations on Foreign Types

impl PrettyDebug for bool[src]

impl PrettyDebug for ()[src]

Loading content...

Implementors

impl PrettyDebug for DebugDoc[src]

impl PrettyDebug for DebugDocBuilder[src]

impl<T: PrettyDebug> PrettyDebug for Spanned<T>[src]

Loading content...