pub enum HistogramBins {
Auto,
Count(usize),
Width(f64),
}Expand description
Histogram bin-selection strategy.
Variants§
Auto
Select a width with the Freedman-Diaconis rule, falling back to Sturges. Automatic selection is capped at 512 bins; constant data uses one centered bin.
Count(usize)
Render exactly this many centered equal-width bins, including for constant data, up to the safety limit of 1,000,000 bins.
Width(f64)
Render bins with this data-space width, provided the resulting count does not exceed the 1,000,000-bin safety limit. Constant data uses one bin centered on the value and rejects widths that are not representable.
Trait Implementations§
Source§impl Clone for HistogramBins
impl Clone for HistogramBins
impl Copy for HistogramBins
Source§impl Debug for HistogramBins
impl Debug for HistogramBins
Source§impl Default for HistogramBins
impl Default for HistogramBins
Source§impl PartialEq for HistogramBins
impl PartialEq for HistogramBins
impl StructuralPartialEq for HistogramBins
Auto Trait Implementations§
impl Forget for HistogramBins
impl Freeze for HistogramBins
impl Move 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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Read<Exclusive, BecauseExclusive> for Twhere
T: ?Sized,
impl<T> Scalar for T
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.