[−][src]Struct embedded_graphics::pixelcolor::Bgr888
Bgr888 color.
Use the methods provided by the RgbColor
trait to access
individual color channels and predefined color constants.
See the module-level documentation for more information about conversion between this type and raw data.
Methods
impl Bgr888 where
Self: RgbColor,
[src]
Self: RgbColor,
pub const fn new(r: u8, g: u8, b: u8) -> Self
[src]
Creates a new Bgr888 color.
Too large channel values will be limited by setting the unused most significant bits to zero.
Trait Implementations
impl Clone for Bgr888
[src]
fn clone(&self) -> Bgr888
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for Bgr888
[src]
impl Debug for Bgr888
[src]
impl Eq for Bgr888
[src]
impl From<Bgr555> for Bgr888
[src]
impl From<Bgr565> for Bgr888
[src]
impl From<Bgr888> for Rgb555
[src]
impl From<Bgr888> for Bgr555
[src]
impl From<Bgr888> for Rgb565
[src]
impl From<Bgr888> for Bgr565
[src]
impl From<Bgr888> for Rgb888
[src]
impl From<Bgr888> for RawU24
[src]
impl From<BinaryColor> for Bgr888
[src]
fn from(color: BinaryColor) -> Self
[src]
impl From<Gray2> for Bgr888
[src]
impl From<Gray4> for Bgr888
[src]
impl From<Gray8> for Bgr888
[src]
impl From<RawU24> for Bgr888
[src]
impl From<Rgb555> for Bgr888
[src]
impl From<Rgb565> for Bgr888
[src]
impl From<Rgb888> for Bgr888
[src]
impl PartialEq<Bgr888> for Bgr888
[src]
impl PixelColor for Bgr888
[src]
impl RgbColor for Bgr888
[src]
fn r(&self) -> u8
[src]
fn g(&self) -> u8
[src]
fn b(&self) -> u8
[src]
const MAX_R: u8
[src]
const MAX_G: u8
[src]
const MAX_B: u8
[src]
const BLACK: Self
[src]
const RED: Self
[src]
const GREEN: Self
[src]
const BLUE: Self
[src]
const YELLOW: Self
[src]
const MAGENTA: Self
[src]
const CYAN: Self
[src]
const WHITE: Self
[src]
impl StructuralEq for Bgr888
[src]
impl StructuralPartialEq for Bgr888
[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Scalar for T where
T: PartialEq<T> + Copy + Any + Debug,
[src]
T: PartialEq<T> + Copy + Any + Debug,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,
fn to_subset(&self) -> Option<SS>
fn is_in_subset(&self) -> bool
unsafe fn to_subset_unchecked(&self) -> SS
fn from_subset(element: &SS) -> SP
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,