pub struct Themes { /* private fields */ }Expand description
A platform-keyed set of themes plus a required fallback.
ⓘ
let themes = Themes::new(light_theme())
.platform(Platform::Ios, cupertino())
.platform(Platform::Android, material());
App::new().themes(themes).launch(MyApp);Implementations§
Source§impl Themes
impl Themes
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Themes
impl !UnwindSafe for Themes
impl Freeze for Themes
impl Send for Themes
impl Sync for Themes
impl Unpin for Themes
impl UnsafeUnpin for Themes
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