pub enum Brightness {
Dark,
Light,
}Expand description
Describes the contrast of a theme or color palette.
Flutter counterpart: Brightness (dart:ui window.dart).
Variants§
Dark
The color is dark and will require a light text color to achieve readable contrast.
For example, the color might be dark grey, requiring white text.
Light
The color is light and will require a dark text color to achieve readable contrast.
For example, the color might be bright white, requiring black text.
Trait Implementations§
Source§impl Clone for Brightness
impl Clone for Brightness
impl Copy for Brightness
Source§impl Debug for Brightness
impl Debug for Brightness
impl Eq for Brightness
Source§impl Hash for Brightness
impl Hash for Brightness
Source§impl PartialEq for Brightness
impl PartialEq for Brightness
impl StructuralPartialEq for Brightness
Auto Trait Implementations§
impl Freeze for Brightness
impl RefUnwindSafe for Brightness
impl Send for Brightness
impl Sync for Brightness
impl Unpin for Brightness
impl UnsafeUnpin for Brightness
impl UnwindSafe for Brightness
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.