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§
Sourcefn write_header(
&self,
array: &ArrayRef,
ctx: &TreeContext,
f: &mut Formatter<'_>,
) -> Result
fn write_header( &self, array: &ArrayRef, ctx: &TreeContext, f: &mut Formatter<'_>, ) -> Result
Write header annotations (space-prefixed) to the formatter.
Sourcefn write_details(
&self,
array: &ArrayRef,
ctx: &TreeContext,
f: &mut IndentedFormatter<'_, '_>,
) -> Result
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.