Skip to main content

LazyReparse

Trait LazyReparse 

Source
pub trait LazyReparse: Fn(&LazyLeaf<'_>, &mut TreeSink) -> bool { }
Expand description

Reparses a lazy-parseable leaf into sink; false if its kind isn’t lazy (nothing emitted). Generic rather than dyn so the per-leaf kind check inlines into create_leaf.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<F: Fn(&LazyLeaf<'_>, &mut TreeSink) -> bool> LazyReparse for F