pub struct HistogramInfo {
pub number_of_entries: usize,
pub histogram_for_alpha: bool,
pub min_pixel_value: [f32; 4],
pub max_pixel_value: [f32; 4],
}Expand description
Plain-Rust configuration for MPSImageHistogramInfo.
Fields§
§number_of_entries: usizeCorresponds to the number_of_entries field on MPSImageHistogramInfo.
histogram_for_alpha: boolCorresponds to the histogram_for_alpha field on MPSImageHistogramInfo.
min_pixel_value: [f32; 4]Corresponds to the min_pixel_value field on MPSImageHistogramInfo.
max_pixel_value: [f32; 4]Corresponds to the max_pixel_value field on MPSImageHistogramInfo.
Trait Implementations§
Source§impl Clone for HistogramInfo
impl Clone for HistogramInfo
Source§fn clone(&self) -> HistogramInfo
fn clone(&self) -> HistogramInfo
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 HistogramInfo
impl Debug for HistogramInfo
impl Copy for HistogramInfo
Auto Trait Implementations§
impl Freeze for HistogramInfo
impl RefUnwindSafe for HistogramInfo
impl Send for HistogramInfo
impl Sync for HistogramInfo
impl Unpin for HistogramInfo
impl UnsafeUnpin for HistogramInfo
impl UnwindSafe for HistogramInfo
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