Struct prototty::Rgb24
[−]
[src]
pub struct Rgb24 { pub red: u8, pub green: u8, pub blue: u8, }
Fields
red: u8
green: u8
blue: u8
Methods
impl Rgb24
[src]
fn new(red: u8, green: u8, blue: u8) -> Self
[src]
fn into_u32(self) -> u32
[src]
fn from_u32(u: u32) -> Self
[src]
Trait Implementations
impl Debug for Rgb24
[src]
impl Clone for Rgb24
[src]
fn clone(&self) -> Rgb24
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for Rgb24
[src]
impl PartialEq for Rgb24
[src]
fn eq(&self, __arg_0: &Rgb24) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Rgb24) -> bool
[src]
This method tests for !=
.