pub struct HistogramEntry {
pub color: RGBA,
pub count: u32,
}Expand description
A color and how many pixels have it, for Histogram::add_colors.
Fields§
§color: RGBAThe color. Fully transparent colors are all counted as one, whatever their RGB.
count: u32Number of pixels with this color.
Trait Implementations§
Source§impl Clone for HistogramEntry
impl Clone for HistogramEntry
impl Copy for HistogramEntry
Source§impl Debug for HistogramEntry
impl Debug for HistogramEntry
Source§impl Default for HistogramEntry
impl Default for HistogramEntry
impl Eq for HistogramEntry
Source§impl Hash for HistogramEntry
impl Hash for HistogramEntry
Source§impl PartialEq for HistogramEntry
impl PartialEq for HistogramEntry
impl StructuralPartialEq for HistogramEntry
Auto Trait Implementations§
impl Forget for HistogramEntry
impl Freeze for HistogramEntry
impl Move for HistogramEntry
impl RefUnwindSafe for HistogramEntry
impl Send for HistogramEntry
impl Sync for HistogramEntry
impl Unpin for HistogramEntry
impl UnsafeUnpin for HistogramEntry
impl UnwindSafe for HistogramEntry
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more