Struct nu_source::DbgDocBldr [−][src]
pub struct DbgDocBldr {
pub inner: DocBuilder<'static, BoxAllocator, ShellAnnotation>,
}
Fields
inner: DocBuilder<'static, BoxAllocator, ShellAnnotation>
Implementations
Constructs a new DebugDocBuilder
.
pub fn surrounded_option(
before: Option<DebugDocBuilder>,
builder: Option<DebugDocBuilder>,
after: Option<DebugDocBuilder>
) -> DebugDocBuilder
pub fn preceded_option(
before: Option<DebugDocBuilder>,
builder: Option<DebugDocBuilder>
) -> DebugDocBuilder
pub fn intersperse_with_source<'a, T: PrettyDebugWithSource + 'a>(
list: impl IntoIterator<Item = &'a T>,
separator: DebugDocBuilder,
source: &str
) -> DebugDocBuilder
pub fn intersperse<T: PrettyDebug>(
list: impl IntoIterator<Item = T>,
separator: DebugDocBuilder
) -> DebugDocBuilder
Methods from Deref<Target = DocBuilder<'static, BoxAllocator, ShellAnnotation>>
Trait Implementations
type Output = DebugDocBuilder
type Output = DebugDocBuilder
The resulting type after applying the +
operator.
Performs the +
operation. Read more
type Target = DocBuilder<'static, BoxAllocator, ShellAnnotation>
type Target = DocBuilder<'static, BoxAllocator, ShellAnnotation>
The resulting type after dereferencing.
Performs the conversion.
Performs the conversion.
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. Read more
Auto Trait Implementations
impl RefUnwindSafe for DebugDocBuilder
impl Send for DebugDocBuilder
impl Sync for DebugDocBuilder
impl Unpin for DebugDocBuilder
impl UnwindSafe for DebugDocBuilder
Blanket Implementations
Mutably borrows from an owned value. Read more