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>
) -> DebugDocBuilderpub fn preceded_option(
before: Option<DebugDocBuilder>,
builder: Option<DebugDocBuilder>
) -> DebugDocBuilderpub fn intersperse_with_source<'a, T: PrettyDebugWithSource + 'a>(
list: impl IntoIterator<Item = &'a T>,
separator: DebugDocBuilder,
source: &str
) -> DebugDocBuilderpub fn intersperse<T: PrettyDebug>(
list: impl IntoIterator<Item = T>,
separator: DebugDocBuilder
) -> DebugDocBuilderMethods from Deref<Target = DocBuilder<'static, BoxAllocator, ShellAnnotation>>
Trait Implementations
type Output = DebugDocBuilder
type Output = DebugDocBuilderThe 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 DebugDocBuilderimpl Send for DebugDocBuilderimpl Sync for DebugDocBuilderimpl Unpin for DebugDocBuilderimpl UnwindSafe for DebugDocBuilderBlanket Implementations
Mutably borrows from an owned value. Read more