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