pub struct MiniBarColors {
pub high: PackedRgba,
pub mid: PackedRgba,
pub low: PackedRgba,
pub critical: PackedRgba,
}Expand description
Color thresholds for MiniBar.
Fields§
§high: PackedRgba§mid: PackedRgba§low: PackedRgba§critical: PackedRgbaImplementations§
Source§impl MiniBarColors
impl MiniBarColors
pub fn new( high: PackedRgba, mid: PackedRgba, low: PackedRgba, critical: PackedRgba, ) -> Self
Trait Implementations§
Source§impl Clone for MiniBarColors
impl Clone for MiniBarColors
Source§fn clone(&self) -> MiniBarColors
fn clone(&self) -> MiniBarColors
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 MiniBarColors
impl Debug for MiniBarColors
Source§impl Default for MiniBarColors
impl Default for MiniBarColors
impl Copy for MiniBarColors
Auto Trait Implementations§
impl Freeze for MiniBarColors
impl RefUnwindSafe for MiniBarColors
impl Send for MiniBarColors
impl Sync for MiniBarColors
impl Unpin for MiniBarColors
impl UnsafeUnpin for MiniBarColors
impl UnwindSafe for MiniBarColors
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