Skip to main content

TreeDisplayExtractor

Trait TreeDisplayExtractor 

Source
pub trait TreeDisplayExtractor<N: ?Sized, C: TreeDisplayContext<N>>: Send + Sync {
    // Provided methods
    fn write_header(
        &self,
        node: &N,
        context: &C,
        formatter: &mut Formatter<'_>,
    ) -> Result { ... }
    fn write_details(
        &self,
        node: &N,
        context: &C,
        formatter: &mut IndentedFormatter<'_, '_>,
    ) -> Result { ... }
}
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

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

Source

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

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§