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