pub struct RustBackend;Expand description
Emits Rust source code for a parsed CSS stylesheet.
Trait Implementations§
Source§impl Clone for RustBackend
impl Clone for RustBackend
Source§fn clone(&self) -> RustBackend
fn clone(&self) -> RustBackend
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CodegenBackend for RustBackend
impl CodegenBackend for RustBackend
Source§fn lang(&self) -> &'static str
fn lang(&self) -> &'static str
Stable identifier (e.g.
"rust") used by the HTTP layer to pick a backend.Source§fn emit_css(&self, css: &Css) -> String
fn emit_css(&self, css: &Css) -> String
Render a single CSS expression. Useful for tests / quick previews where
the caller doesn’t want a full project layout.
Source§fn emit_project(&self, css: &Css) -> Vec<GeneratedFile>
fn emit_project(&self, css: &Css) -> Vec<GeneratedFile>
Emit a complete standalone project. The returned files are root-relative.
impl Copy for RustBackend
Auto Trait Implementations§
impl Freeze for RustBackend
impl RefUnwindSafe for RustBackend
impl Send for RustBackend
impl Sync for RustBackend
impl Unpin for RustBackend
impl UnsafeUnpin for RustBackend
impl UnwindSafe for RustBackend
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