Struct colored::customcolors::CustomColor
source · pub struct CustomColor {
pub r: u8,
pub g: u8,
pub b: u8,
}
Expand description
Custom color structure, it will generate a true color in the result
Fields§
§r: u8
Red
g: u8
Green
b: u8
Blue
Implementations§
Trait Implementations§
source§impl Clone for CustomColor
impl Clone for CustomColor
source§fn clone(&self) -> CustomColor
fn clone(&self) -> CustomColor
Returns a copy 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 CustomColor
impl Debug for CustomColor
source§impl PartialEq for CustomColor
impl PartialEq for CustomColor
impl Copy for CustomColor
impl Eq for CustomColor
impl StructuralPartialEq for CustomColor
Auto Trait Implementations§
impl Freeze for CustomColor
impl RefUnwindSafe for CustomColor
impl Send for CustomColor
impl Sync for CustomColor
impl Unpin 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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)