Struct swc_css_codegen::writer::basic::BasicCssWriter
source · [−]pub struct BasicCssWriter<'a, W> where
W: Write, { /* private fields */ }
Implementations
sourceimpl<'a, W> BasicCssWriter<'a, W> where
W: Write,
impl<'a, W> BasicCssWriter<'a, W> where
W: Write,
pub fn new(writer: W, config: BasicCssWriterConfig<'a>) -> Self
Trait Implementations
sourceimpl<W> CssWriter for BasicCssWriter<'_, W> where
W: Write,
impl<W> CssWriter for BasicCssWriter<'_, W> where
W: Write,
sourcefn write_punct(&mut self, _span: Option<Span>, punct: &str) -> Result
fn write_punct(&mut self, _span: Option<Span>, punct: &str) -> Result
punct
should not contain newline.
fn write_space(&mut self) -> Result
fn write_str(&mut self, span: Option<Span>, text: &str) -> Result
fn write_raw(&mut self, span: Option<Span>, text: &str) -> Result
fn write_raw_char(&mut self, _span: Option<Span>, c: char) -> Result
fn write_newline(&mut self) -> Result
fn increase_indent(&mut self)
fn decrease_indent(&mut self)
Auto Trait Implementations
impl<'a, W> RefUnwindSafe for BasicCssWriter<'a, W> where
W: RefUnwindSafe,
impl<'a, W> Send for BasicCssWriter<'a, W> where
W: Send,
impl<'a, W> Sync for BasicCssWriter<'a, W> where
W: Sync,
impl<'a, W> Unpin for BasicCssWriter<'a, W> where
W: Unpin,
impl<'a, W> UnwindSafe for BasicCssWriter<'a, W> where
W: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more