Struct firefly_rust::graphics::ImageColors
source · pub struct ImageColors {
pub a: Color,
pub b: Color,
pub c: Color,
pub d: Color,
}
Expand description
A mapping of colors in the image to the color palette.
Fields§
§a: Color
§b: Color
§c: Color
§d: Color
Trait Implementations§
source§impl Clone for ImageColors
impl Clone for ImageColors
source§fn clone(&self) -> ImageColors
fn clone(&self) -> ImageColors
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 ImageColors
impl Debug for ImageColors
source§impl Default for ImageColors
impl Default for ImageColors
source§impl Hash for ImageColors
impl Hash for ImageColors
source§impl PartialEq for ImageColors
impl PartialEq for ImageColors
source§fn eq(&self, other: &ImageColors) -> bool
fn eq(&self, other: &ImageColors) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ImageColors
impl StructuralPartialEq for ImageColors
Auto Trait Implementations§
impl Freeze for ImageColors
impl RefUnwindSafe for ImageColors
impl Send for ImageColors
impl Sync for ImageColors
impl Unpin for ImageColors
impl UnwindSafe for ImageColors
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<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.