pub struct LeanBuilder<'config> { /* private fields */ }Expand description
Builder for constructing Lean AST from source text.
Implementations§
Source§impl<'config> LeanBuilder<'config>
impl<'config> LeanBuilder<'config>
Sourcepub fn new(config: &'config LeanLanguage) -> Self
pub fn new(config: &'config LeanLanguage) -> Self
Creates a new Lean builder with the given language configuration.
Trait Implementations§
Source§impl<'config> Builder<LeanLanguage> for LeanBuilder<'config>
impl<'config> Builder<LeanLanguage> for LeanBuilder<'config>
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &'a S,
edits: &[TextEdit],
cache: &'a mut impl BuilderCache<LeanLanguage>,
) -> OakDiagnostics<LeanRoot>
fn build<'a, S: Source + ?Sized>( &self, source: &'a S, edits: &[TextEdit], cache: &'a mut impl BuilderCache<LeanLanguage>, ) -> OakDiagnostics<LeanRoot>
Builds the higher-level structure (typically an AST) from the source text. Read more
Auto Trait Implementations§
impl<'config> Freeze for LeanBuilder<'config>
impl<'config> RefUnwindSafe for LeanBuilder<'config>
impl<'config> Send for LeanBuilder<'config>
impl<'config> Sync for LeanBuilder<'config>
impl<'config> Unpin for LeanBuilder<'config>
impl<'config> UnsafeUnpin for LeanBuilder<'config>
impl<'config> UnwindSafe for LeanBuilder<'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