pub enum HistogramBins {
Count(usize),
Method(BinMethod),
}Expand description
Histogram bin selector.
ImPlot uses positive integers for concrete bin counts and negative integer sentinels for automatic binning methods. This type keeps those two meanings explicit in the safe Rust API.
Variants§
Count(usize)
Use a concrete positive bin count.
Method(BinMethod)
Use an automatic ImPlot binning method.
Implementations§
Trait Implementations§
Source§impl Clone for HistogramBins
impl Clone for HistogramBins
Source§fn clone(&self) -> HistogramBins
fn clone(&self) -> HistogramBins
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 moreimpl Copy for HistogramBins
Source§impl Debug for HistogramBins
impl Debug for HistogramBins
Source§impl Default for HistogramBins
impl Default for HistogramBins
impl Eq for HistogramBins
Source§impl From<BinMethod> for HistogramBins
impl From<BinMethod> for HistogramBins
Source§impl From<usize> for HistogramBins
impl From<usize> for HistogramBins
Source§impl PartialEq for HistogramBins
impl PartialEq for HistogramBins
Source§fn eq(&self, other: &HistogramBins) -> bool
fn eq(&self, other: &HistogramBins) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for HistogramBins
Auto Trait Implementations§
impl Freeze for HistogramBins
impl RefUnwindSafe for HistogramBins
impl Send for HistogramBins
impl Sync for HistogramBins
impl Unpin for HistogramBins
impl UnsafeUnpin for HistogramBins
impl UnwindSafe for HistogramBins
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