pub struct PythonBuilder<'config> { /* private fields */ }Expand description
AST builder for the Python language.
Implementations§
Source§impl<'config> PythonBuilder<'config>
impl<'config> PythonBuilder<'config>
Sourcepub fn new(config: &'config PythonLanguage) -> Self
pub fn new(config: &'config PythonLanguage) -> Self
Creates a new Python builder.
Trait Implementations§
Source§impl<'config> Builder<PythonLanguage> for PythonBuilder<'config>
impl<'config> Builder<PythonLanguage> for PythonBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<PythonLanguage>,
) -> BuildOutput<PythonLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<PythonLanguage>, ) -> BuildOutput<PythonLanguage>
Builds the structure from the source text.
Auto Trait Implementations§
impl<'config> Freeze for PythonBuilder<'config>
impl<'config> RefUnwindSafe for PythonBuilder<'config>
impl<'config> Send for PythonBuilder<'config>
impl<'config> Sync for PythonBuilder<'config>
impl<'config> Unpin for PythonBuilder<'config>
impl<'config> UnsafeUnpin for PythonBuilder<'config>
impl<'config> UnwindSafe for PythonBuilder<'config>
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