pub trait TreeExtractor<N, C>: Send + Syncwhere
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§
Sourcefn write_header(
&self,
node: &N,
context: &C,
formatter: &mut Formatter<'_>,
) -> Result<(), Error>
fn write_header( &self, node: &N, context: &C, formatter: &mut Formatter<'_>, ) -> Result<(), Error>
Write space-prefixed annotations on the node’s header line.
Sourcefn write_details(
&self,
node: &N,
context: &C,
formatter: &mut IndentedFormatter<'_, '_>,
) -> Result<(), Error>
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".