pub struct CustomColor {
pub r: u8,
pub g: u8,
pub b: u8,
}Expand description
A truecolor value specified by red, green, and blue byte components.
Primarily used with the custom_color and
on_custom_color methods.
Fields§
§r: u8Red component (0–255).
g: u8Green component (0–255).
b: u8Blue component (0–255).
Implementations§
Source§impl CustomColor
impl CustomColor
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CustomColor
impl RefUnwindSafe for CustomColor
impl Send for CustomColor
impl Sync for CustomColor
impl Unpin for CustomColor
impl UnsafeUnpin for CustomColor
impl UnwindSafe for CustomColor
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