Skip to main content

TreeExtractor

Trait TreeExtractor 

Source
pub trait TreeExtractor: Send + Sync {
    // Provided methods
    fn write_header(
        &self,
        array: &ArrayRef,
        ctx: &TreeContext,
        f: &mut Formatter<'_>,
    ) -> Result { ... }
    fn write_details(
        &self,
        array: &ArrayRef,
        ctx: &TreeContext,
        f: &mut IndentedFormatter<'_, '_>,
    ) -> Result { ... }
}
Expand description

Trait for contributing display information to tree nodes.

Each extractor represents one “dimension” of display (e.g., nbytes, stats, metadata, buffers). Extractors are composable: you can combine any number of them via TreeDisplay::with.

Provided Methods§

Source

fn write_header( &self, array: &ArrayRef, ctx: &TreeContext, f: &mut Formatter<'_>, ) -> Result

Write header annotations (space-prefixed) to the formatter.

Source

fn write_details( &self, array: &ArrayRef, ctx: &TreeContext, f: &mut IndentedFormatter<'_, '_>, ) -> Result

Write detail lines below the header.

Content written through f is automatically indented. Use f.formatter() to access the underlying fmt::Formatter for formatting flags.

Implementors§