pub struct TreeSitterHeaderParser;Expand description
Tree-sitter implementation of HeaderParser.
Trait Implementations§
Source§impl Clone for TreeSitterHeaderParser
impl Clone for TreeSitterHeaderParser
Source§fn clone(&self) -> TreeSitterHeaderParser
fn clone(&self) -> TreeSitterHeaderParser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TreeSitterHeaderParser
Source§impl Debug for TreeSitterHeaderParser
impl Debug for TreeSitterHeaderParser
Source§impl Default for TreeSitterHeaderParser
impl Default for TreeSitterHeaderParser
Source§fn default() -> TreeSitterHeaderParser
fn default() -> TreeSitterHeaderParser
Returns the “default value” for a type. Read more
Source§impl HeaderParser for TreeSitterHeaderParser
impl HeaderParser for TreeSitterHeaderParser
Source§fn parse(
&self,
language: Language,
source: &str,
) -> Result<TranslationUnit, ParseError>
fn parse( &self, language: Language, source: &str, ) -> Result<TranslationUnit, ParseError>
Parses a complete header translation unit.
Auto Trait Implementations§
impl Freeze for TreeSitterHeaderParser
impl RefUnwindSafe for TreeSitterHeaderParser
impl Send for TreeSitterHeaderParser
impl Sync for TreeSitterHeaderParser
impl Unpin for TreeSitterHeaderParser
impl UnsafeUnpin for TreeSitterHeaderParser
impl UnwindSafe for TreeSitterHeaderParser
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more