#[repr(C)]pub struct Histogram32 {
pub inner: Histogram<u32>,
}Expand description
Implementation of a histogram using unsigned 32 bit integers as the counter.
Max safe array size to pass is 4,294,967,295, naturally, as a result, though in practice it can be a bit bigger.
Fields§
§inner: Histogram<u32>Implementations§
Source§impl Histogram32
impl Histogram32
Sourcepub fn from_bytes(bytes: &[u8]) -> Self
pub fn from_bytes(bytes: &[u8]) -> Self
This is a shortcut for histogram32_from_bytes
Trait Implementations§
Source§impl Clone for Histogram32
impl Clone for Histogram32
Source§fn clone(&self) -> Histogram32
fn clone(&self) -> Histogram32
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Default for Histogram32
impl Default for Histogram32
Source§fn default() -> Histogram32
fn default() -> Histogram32
Returns the “default value” for a type. Read more
Source§impl Deref for Histogram32
impl Deref for Histogram32
Source§impl DerefMut for Histogram32
impl DerefMut for Histogram32
Source§impl Ord for Histogram32
impl Ord for Histogram32
Source§fn cmp(&self, other: &Histogram32) -> Ordering
fn cmp(&self, other: &Histogram32) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for Histogram32
impl PartialEq for Histogram32
Source§impl PartialOrd for Histogram32
impl PartialOrd for Histogram32
impl Copy for Histogram32
impl Eq for Histogram32
impl StructuralPartialEq for Histogram32
Auto Trait Implementations§
impl Freeze for Histogram32
impl RefUnwindSafe for Histogram32
impl Send for Histogram32
impl Sync for Histogram32
impl Unpin for Histogram32
impl UnwindSafe for Histogram32
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