pub struct GoLanguage;
Expand description
Implementation of LanguageImpl for Go
Implementations§
Source§impl GoLanguage
impl GoLanguage
Trait Implementations§
Source§impl Default for GoLanguage
impl Default for GoLanguage
Source§impl LanguageImpl for GoLanguage
impl LanguageImpl for GoLanguage
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 GoLanguage
impl RefUnwindSafe for GoLanguage
impl Send for GoLanguage
impl Sync for GoLanguage
impl Unpin for GoLanguage
impl UnwindSafe for GoLanguage
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