pub struct RandomColor { /* private fields */ }
Implementations§
Source§impl RandomColor
impl RandomColor
pub fn rand_color_struct( min_red: u8, max_red: u8, min_green: u8, max_green: u8, min_blue: u8, max_blue: u8, min_alpha: f32, max_alpha: f32, ) -> Self
pub fn rand_color_string( min_red: u8, max_red: u8, min_green: u8, max_green: u8, min_blue: u8, max_blue: u8, min_alpha: f32, max_alpha: f32, ) -> String
Trait Implementations§
Source§impl Debug for RandomColor
impl Debug for RandomColor
Source§impl PartialEq for RandomColor
impl PartialEq for RandomColor
impl StructuralPartialEq for RandomColor
Auto Trait Implementations§
impl Freeze for RandomColor
impl RefUnwindSafe for RandomColor
impl Send for RandomColor
impl Sync for RandomColor
impl Unpin for RandomColor
impl UnwindSafe for RandomColor
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