nu_source

Trait PrettyDebugWithSource

Source
pub trait PrettyDebugWithSource: Sized {
    // Required method
    fn pretty_debug(&self, source: &str) -> DebugDocBuilder;

    // Provided methods
    fn refined_pretty_debug(
        &self,
        _refine: PrettyDebugRefineKind,
        source: &str,
    ) -> DebugDocBuilder { ... }
    fn debug(&self, source: impl Into<Text>) -> String
       where Self: Clone { ... }
    fn debuggable(self, source: impl Into<Text>) -> DebuggableWithSource<Self> { ... }
}

Required Methods§

Source

fn pretty_debug(&self, source: &str) -> DebugDocBuilder

Provided Methods§

Source

fn refined_pretty_debug( &self, _refine: PrettyDebugRefineKind, source: &str, ) -> DebugDocBuilder

Source

fn debug(&self, source: impl Into<Text>) -> String
where Self: Clone,

Source

fn debuggable(self, source: impl Into<Text>) -> DebuggableWithSource<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 PrettyDebugWithSource for Option<Span>

Source§

impl<T> PrettyDebugWithSource for Option<Spanned<T>>

Source§

impl<T> PrettyDebugWithSource for Option<Tagged<T>>

Source§

impl<T: PrettyDebugWithSource, E> PrettyDebugWithSource for Result<T, E>

Implementors§