Struct freya::components::ThemeProviderProps
pub struct ThemeProviderProps<'a> {
pub theme: Option<Theme>,
pub children: Option<VNode<'a>>,
}
Expand description
ThemeProvider
component properties.
Fields§
§theme: Option<Theme>
Theme to provide.
children: Option<VNode<'a>>
Inner children to provide a Theme to.
Implementations§
§impl<'a> ThemeProviderProps<'a>
impl<'a> ThemeProviderProps<'a>
Trait Implementations§
§impl<'a> Properties for ThemeProviderProps<'a>
impl<'a> Properties for ThemeProviderProps<'a>
§type Builder = ThemeProviderPropsBuilder<'a, ((), ())>
type Builder = ThemeProviderPropsBuilder<'a, ((), ())>
The type of the builder for this component.
Used to create “in-progress” versions of the props.
§fn builder() -> <ThemeProviderProps<'a> as Properties>::Builder
fn builder() -> <ThemeProviderProps<'a> as Properties>::Builder
Create a builder for this component.
§unsafe fn memoize(&self, other: &ThemeProviderProps<'a>) -> bool
unsafe fn memoize(&self, other: &ThemeProviderProps<'a>) -> bool
Memoization can only happen if the props are valid for the ’static lifetime Read more
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for ThemeProviderProps<'a>
impl<'a> !Send for ThemeProviderProps<'a>
impl<'a> !Sync for ThemeProviderProps<'a>
impl<'a> Unpin for ThemeProviderProps<'a>
impl<'a> !UnwindSafe for ThemeProviderProps<'a>
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