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