pub struct BinInfo<'a> { /* private fields */ }
Expand description
Captures all information about the bins in a grid.
Implementations
sourceimpl<'a> BinInfo<'a>
impl<'a> BinInfo<'a>
sourcepub const fn new(
limits: &'a BinLimits,
remapper: Option<&'a BinRemapper>
) -> Self
pub const fn new(
limits: &'a BinLimits,
remapper: Option<&'a BinRemapper>
) -> Self
Constructor.
sourcepub fn dimensions(&self) -> usize
pub fn dimensions(&self) -> usize
Returns the number of dimensions.
sourcepub fn left(&self, dimension: usize) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn left(&self, dimension: usize) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns all left-limits for the specified dimension. If the dimension does not exist, an empty vector is returned.
sourcepub fn right(&self, dimension: usize) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn right(&self, dimension: usize) -> Vec<f64>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
Returns all right-limits for the specified dimension. If the dimension does not exist, an empty vector is returned.
sourcepub fn limits(&self) -> Vec<Vec<(f64, f64)>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
pub fn limits(&self) -> Vec<Vec<(f64, f64)>>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A>where
A: Allocator,
A: Allocator,
For each bin return a vector of (left, right)
limits for each dimension.
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for BinInfo<'a>
impl<'a> Send for BinInfo<'a>
impl<'a> Sync for BinInfo<'a>
impl<'a> Unpin for BinInfo<'a>
impl<'a> UnwindSafe for BinInfo<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more