Skip to main content

TreeExtractor

Trait TreeExtractor 

Source
pub trait TreeExtractor<N, C>: Send + Sync
where C: TreeDisplayContext<N>, N: ?Sized,
{ // Provided methods fn write_header( &self, node: &N, context: &C, formatter: &mut Formatter<'_>, ) -> Result<(), Error> { ... } fn write_details( &self, node: &N, context: &C, formatter: &mut IndentedFormatter<'_, '_>, ) -> Result<(), Error> { ... } }
Expand description

Contributes one composable dimension of information to tree nodes.

Provided Methods§

Source

fn write_header( &self, node: &N, context: &C, formatter: &mut Formatter<'_>, ) -> Result<(), Error>

Write space-prefixed annotations on the node’s header line.

Source

fn write_details( &self, node: &N, context: &C, formatter: &mut IndentedFormatter<'_, '_>, ) -> Result<(), Error>

Write detail lines beneath the node’s header.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§