Struct css_in_rs::StyleProvider
source · pub struct StyleProvider<T> { /* private fields */ }
Implementations§
source§impl<T: Theme> StyleProvider<T>
impl<T: Theme> StyleProvider<T>
pub fn new_and_mount(some_elem: &Element, theme: T) -> Self
pub fn add_classes<C>(&self) -> Cwhere
C: Classes<Theme = T>,
pub fn update_theme(&self, theme: T)
pub fn use_styles<'a, C>(&self, cx: &'a ScopeState) -> &'a Cwhere
C: Classes<Theme = T>,
Trait Implementations§
source§impl<T: Clone> Clone for StyleProvider<T>
impl<T: Clone> Clone for StyleProvider<T>
source§fn clone(&self) -> StyleProvider<T>
fn clone(&self) -> StyleProvider<T>
Returns a copy 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<T> !RefUnwindSafe for StyleProvider<T>
impl<T> !Send for StyleProvider<T>
impl<T> !Sync for StyleProvider<T>
impl<T> Unpin for StyleProvider<T>
impl<T> !UnwindSafe for StyleProvider<T>
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