pub struct CLanguage;
Expand description
Implementation of LanguageImpl for C
Implementations§
Trait Implementations§
Source§impl LanguageImpl for CLanguage
impl LanguageImpl for CLanguage
Source§fn get_tree_sitter_language(&self) -> TSLanguage
fn get_tree_sitter_language(&self) -> TSLanguage
Get the tree-sitter language for parsing
Source§fn get_extension(&self) -> &'static str
fn get_extension(&self) -> &'static str
👎Deprecated since 0.1.0: this method is not used
Get the file extension for this language
Source§fn is_acceptable_parent(&self, node: &Node<'_>) -> bool
fn is_acceptable_parent(&self, node: &Node<'_>) -> bool
Check if a node is an acceptable container/parent entity
Auto Trait Implementations§
impl Freeze for CLanguage
impl RefUnwindSafe for CLanguage
impl Send for CLanguage
impl Sync for CLanguage
impl Unpin for CLanguage
impl UnwindSafe for CLanguage
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more