Trait rust_sitter::Extract
source · pub trait Extract<Output> {
type LeafFn: ?Sized;
// Required method
fn extract(
node: Option<Node<'_>>,
source: &[u8],
last_idx: usize,
leaf_fn: Option<&Self::LeafFn>
) -> Output;
}Expand description
Defines the logic used to convert a node in a Tree Sitter tree to the corresponding Rust type.