pub struct WebSysBackend { /* private fields */ }
Implementations§
Source§impl WebSysBackend
impl WebSysBackend
pub fn quickstart() -> Self
pub fn new_and_mount_in_root(root: &Node) -> Self
Trait Implementations§
Source§impl<T: Theme> Backend<T> for WebSysBackend
impl<T: Theme> Backend<T> for WebSysBackend
Source§fn replace_all(&mut self, css: String)
fn replace_all(&mut self, css: String)
Replaces all styles managed by this backend by the given CSS string
Source§fn run_css_generator(
&mut self,
generator: CssGeneratorFn<T>,
theme: &T,
counter: &mut u64,
)
fn run_css_generator( &mut self, generator: CssGeneratorFn<T>, theme: &T, counter: &mut u64, )
Runs a given css generator and add the generated styles. The
generator
function is expected to append new rules to the given String
. It may
be empty, in which case the new style is to be returned. Alternatively,
the backend may choose to put in all existing rules, in which case the
new rules are to be appended.Auto Trait Implementations§
impl Freeze for WebSysBackend
impl RefUnwindSafe for WebSysBackend
impl !Send for WebSysBackend
impl !Sync for WebSysBackend
impl Unpin for WebSysBackend
impl UnwindSafe for WebSysBackend
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