Struct freya::components::ThemeProviderProps
source · 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§
source§impl<'a> ThemeProviderProps<'a>
impl<'a> ThemeProviderProps<'a>
Trait Implementations§
source§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.
source§fn builder() -> <ThemeProviderProps<'a> as Properties>::Builder
fn builder() -> <ThemeProviderProps<'a> as Properties>::Builder
Create a builder for this component.
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