pub struct PixelHistogram {
pub red: [usize; 256],
pub green: [usize; 256],
pub blue: [usize; 256],
pub alpha: [usize; 256],
pub non_transparent_count: usize,
pub white_pixels: usize,
pub black_pixels: usize,
pub gray_pixels: usize,
pub colored_pixels: usize,
}Fields§
§red: [usize; 256]§green: [usize; 256]§blue: [usize; 256]§alpha: [usize; 256]§non_transparent_count: usize§white_pixels: usize§black_pixels: usize§gray_pixels: usize§colored_pixels: usizeTrait Implementations§
Source§impl Clone for PixelHistogram
impl Clone for PixelHistogram
Source§fn clone(&self) -> PixelHistogram
fn clone(&self) -> PixelHistogram
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PixelHistogram
impl Debug for PixelHistogram
Auto Trait Implementations§
impl Freeze for PixelHistogram
impl RefUnwindSafe for PixelHistogram
impl Send for PixelHistogram
impl Sync for PixelHistogram
impl Unpin for PixelHistogram
impl UnsafeUnpin for PixelHistogram
impl UnwindSafe for PixelHistogram
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 moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
Read this value from the supplied reader. Same as
ReadEndian::read_from_little_endian().