pub struct PythonGrammar {}Expand description
Python grammar for code generation
When the tree-sitter feature is enabled, uses tree-sitter-python for
proper syntax validation. Otherwise, falls back to basic heuristics.
Implementations§
Trait Implementations§
Source§impl Debug for PythonGrammar
impl Debug for PythonGrammar
Source§impl Default for PythonGrammar
impl Default for PythonGrammar
Auto Trait Implementations§
impl Freeze for PythonGrammar
impl RefUnwindSafe for PythonGrammar
impl Send for PythonGrammar
impl Sync for PythonGrammar
impl Unpin for PythonGrammar
impl UnsafeUnpin for PythonGrammar
impl UnwindSafe for PythonGrammar
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