Struct imagequant::HistogramEntry
source · [−]Expand description
Number of pixels in a given color for Histogram::add_colors()
Used for building a histogram manually. Otherwise see Histogram::add_image()
Fields
color: RGBA
The color
count: u32
Importance of the color (e.g. number of occurrences)
Trait Implementations
sourceimpl Clone for HistogramEntry
impl Clone for HistogramEntry
sourcefn clone(&self) -> HistogramEntry
fn clone(&self) -> HistogramEntry
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for HistogramEntry
impl Debug for HistogramEntry
impl Copy for HistogramEntry
Auto Trait Implementations
impl RefUnwindSafe for HistogramEntry
impl Send for HistogramEntry
impl Sync for HistogramEntry
impl Unpin for HistogramEntry
impl UnwindSafe for HistogramEntry
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more