pub struct ColorPercent {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
A percent-based RGB Color.
Values are from 0-100 NOT 0-255.
Fields§
§r: u8Red
Valued from 0-100
g: u8Green
Valued from 0-100
b: u8Blue
Valued from 0-100
Implementations§
Source§impl ColorPercent
impl ColorPercent
Trait Implementations§
Source§impl Clone for ColorPercent
impl Clone for ColorPercent
Source§fn clone(&self) -> ColorPercent
fn clone(&self) -> ColorPercent
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 ColorPercent
impl Debug for ColorPercent
Source§impl Hash for ColorPercent
impl Hash for ColorPercent
Source§impl PartialEq for ColorPercent
impl PartialEq for ColorPercent
impl Copy for ColorPercent
impl Eq for ColorPercent
impl StructuralPartialEq for ColorPercent
Auto Trait Implementations§
impl Freeze for ColorPercent
impl RefUnwindSafe for ColorPercent
impl Send for ColorPercent
impl Sync for ColorPercent
impl Unpin for ColorPercent
impl UnwindSafe for ColorPercent
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