Implement Copy for Node

This commit is contained in:
Max Brunsfeld 2018-12-13 10:08:50 -08:00
parent 494329c93b
commit 4a361fbb3f

View file

@ -77,6 +77,7 @@ pub struct PropertySheet<P: DeserializeOwned = HashMap<String, String>> {
text_regexes: Vec<Regex>,
}
#[derive(Clone, Copy)]
pub struct Node<'a>(ffi::TSNode, PhantomData<&'a ()>);
pub struct Parser(*mut ffi::TSParser);