Struct stylist::manager::StyleManager
source · pub struct StyleManager { /* private fields */ }
Expand description
A struct to customise behaviour of Style
.
Implementations§
source§impl StyleManager
impl StyleManager
sourcepub fn load_style_data(&self, data: &StyleData)
Available on crate feature hydration
only.
pub fn load_style_data(&self, data: &StyleData)
hydration
only.Loads StyleData of current style manager.
Note
If you are using ManagerProvider
,
this behaviour is managed automatically.
Panics
This method should be called as early as possible. If the same style to be loaded already existed in the manager, it will panic.
source§impl StyleManager
impl StyleManager
Trait Implementations§
source§impl Clone for StyleManager
impl Clone for StyleManager
source§fn clone(&self) -> StyleManager
fn clone(&self) -> StyleManager
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 moresource§impl Debug for StyleManager
impl Debug for StyleManager
source§impl Default for StyleManager
impl Default for StyleManager
source§impl From<&StyleManager> for StyleManager
impl From<&StyleManager> for StyleManager
source§impl ImplicitClone for StyleManager
Available on crate feature yew
only.
impl ImplicitClone for StyleManager
Available on crate feature
yew
only.§fn implicit_clone(&self) -> Self
fn implicit_clone(&self) -> Self
This function is not magic; it is literally defined as Read more
Auto Trait Implementations§
impl !RefUnwindSafe for StyleManager
impl !Send for StyleManager
impl !Sync for StyleManager
impl Unpin for StyleManager
impl !UnwindSafe for StyleManager
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoPropValue<Option<T>> for T
impl<T> IntoPropValue<Option<T>> for T
source§fn into_prop_value(self) -> Option<T>
fn into_prop_value(self) -> Option<T>
Convert
self
to a value of a Properties
struct.source§impl<T> IntoPropValue<T> for T
impl<T> IntoPropValue<T> for T
source§fn into_prop_value(self) -> T
fn into_prop_value(self) -> T
Convert
self
to a value of a Properties
struct.