tree_sitter

Trait TextProvider

source
pub trait TextProvider<I>
where I: AsRef<[u8]>,
{ type I: Iterator<Item = I>; // Required method fn text(&mut self, node: Node<'_>) -> Self::I; }

Required Associated Types§

source

type I: Iterator<Item = I>

Required Methods§

source

fn text(&mut self, node: Node<'_>) -> Self::I

Implementations on Foreign Types§

source§

impl<'a> TextProvider<&'a [u8]> for &'a [u8]

source§

type I = Once<&'a [u8]>

source§

fn text(&mut self, node: Node<'_>) -> Self::I

Implementors§

source§

impl<F, R, I> TextProvider<I> for F
where F: FnMut(Node<'_>) -> R, R: Iterator<Item = I>, I: AsRef<[u8]>,

source§

type I = R