Struct embedded_graphics::pixelcolor::Bgr565
source · [−]pub struct Bgr565(_);
Expand description
Bgr565 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.
Implementations
Trait Implementations
sourceimpl From<BinaryColor> for Bgr565
impl From<BinaryColor> for Bgr565
sourcefn from(color: BinaryColor) -> Self
fn from(color: BinaryColor) -> Self
Performs the conversion.
sourceimpl Ord for Bgr565
impl Ord for Bgr565
sourceimpl PartialOrd<Bgr565> for Bgr565
impl PartialOrd<Bgr565> for Bgr565
sourcefn partial_cmp(&self, other: &Bgr565) -> Option<Ordering>
fn partial_cmp(&self, other: &Bgr565) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Bgr565
impl Eq for Bgr565
impl StructuralEq for Bgr565
impl StructuralPartialEq for Bgr565
Auto Trait Implementations
impl RefUnwindSafe for Bgr565
impl Send for Bgr565
impl Sync for Bgr565
impl Unpin for Bgr565
impl UnwindSafe for Bgr565
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more