pub enum Appearance {
Light,
Dark,
Custom(String),
}Expand description
Determines the appearance mode of the UI.
Variants§
Light
Indicates a light appearance (i.e. the pre-iOS 13.0 default).
Dark
Indicates a dark appearance that was introduced in iOS 13.0.
Custom(String)
This is returned when trying to access the appearance of an unsupported device (e.g. watchOS or tvOS).
Trait Implementations§
Source§impl Clone for Appearance
impl Clone for Appearance
Source§fn clone(&self) -> Appearance
fn clone(&self) -> Appearance
Returns a duplicate 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 Appearance
impl Debug for Appearance
Source§impl PartialEq for Appearance
impl PartialEq for Appearance
impl Eq for Appearance
impl StructuralPartialEq for Appearance
Auto Trait Implementations§
impl Freeze for Appearance
impl RefUnwindSafe for Appearance
impl Send for Appearance
impl Sync for Appearance
impl Unpin for Appearance
impl UnwindSafe for Appearance
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