pub struct LessBuilder { /* private fields */ }Expand description
A builder for Less documents that coordinates parsing and AST construction.
Implementations§
Source§impl LessBuilder
impl LessBuilder
Sourcepub fn new(config: LessLanguage) -> Self
pub fn new(config: LessLanguage) -> Self
Creates a new LessBuilder with the specified language configuration.
Trait Implementations§
Source§impl Builder<LessLanguage> for LessBuilder
impl Builder<LessLanguage> for LessBuilder
Source§fn build<'a, S: Source + ?Sized>(
&self,
source: &S,
edits: &[TextEdit],
_cache: &'a mut impl BuilderCache<LessLanguage>,
) -> BuildOutput<LessLanguage>
fn build<'a, S: Source + ?Sized>( &self, source: &S, edits: &[TextEdit], _cache: &'a mut impl BuilderCache<LessLanguage>, ) -> BuildOutput<LessLanguage>
Builds the higher-level structure (typically an AST) from the source text. Read more
Source§impl Clone for LessBuilder
impl Clone for LessBuilder
Source§fn clone(&self) -> LessBuilder
fn clone(&self) -> LessBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LessBuilder
impl RefUnwindSafe for LessBuilder
impl Send for LessBuilder
impl Sync for LessBuilder
impl Unpin for LessBuilder
impl UnsafeUnpin for LessBuilder
impl UnwindSafe for LessBuilder
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