pub struct ChannelHistogramJson {
pub bins: Vec<u32>,
pub min: u8,
pub max: u8,
pub mean: f64,
pub median: u8,
pub std_dev: f64,
pub count: u64,
}Expand description
JSON-serializable representation of a single channel histogram
Fields§
§bins: Vec<u32>Histogram bin counts (256 bins for 8-bit values)
min: u8Minimum value with non-zero count
max: u8Maximum value with non-zero count
mean: f64Mean value
median: u8Median value
std_dev: f64Standard deviation
count: u64Total count of values
Trait Implementations§
Source§impl Clone for ChannelHistogramJson
impl Clone for ChannelHistogramJson
Source§fn clone(&self) -> ChannelHistogramJson
fn clone(&self) -> ChannelHistogramJson
Returns a duplicate 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 ChannelHistogramJson
impl Debug for ChannelHistogramJson
Source§impl<'de> Deserialize<'de> for ChannelHistogramJson
impl<'de> Deserialize<'de> for ChannelHistogramJson
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ChannelHistogramJson
impl RefUnwindSafe for ChannelHistogramJson
impl Send for ChannelHistogramJson
impl Sync for ChannelHistogramJson
impl Unpin for ChannelHistogramJson
impl UnsafeUnpin for ChannelHistogramJson
impl UnwindSafe for ChannelHistogramJson
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