pub struct C2Params { /* private fields */ }
Expand description
C2Params
are a wrapper struct for a set of CompactParams
and CompressedParams
.
§Example
To create your own parameters, use the constructor function
if let Some(cp1) = new_compact_params(2.0, 15, 9) {
if let Some(cp2) = new_compressed_params(1.4, 31) {
let cp = new_c2_params(cp1, cp2);
// do something
} else { }
} else { }
Implementations§
Source§impl C2Params
impl C2Params
Sourcepub fn compact_ps(&self) -> &CompactParams
pub fn compact_ps(&self) -> &CompactParams
returns a reference to the underlying CompactParameters
Sourcepub fn compressed_ps(&self) -> &CompressedParams
pub fn compressed_ps(&self) -> &CompressedParams
returns a reference to the underlying CompressedParameters
Trait Implementations§
Source§impl Histogram<C2Params, usize, usize> for C2Histogram
impl Histogram<C2Params, usize, usize> for C2Histogram
Source§fn labels(&self, params: &C2Params) -> Option<Box<dyn Iterator<Item = usize>>>
fn labels(&self, params: &C2Params) -> Option<Box<dyn Iterator<Item = usize>>>
If possible, creates and returns an iterator for the labels for which
the histogram has frequencies stored.
impl HistogramParams for C2Params
Auto Trait Implementations§
impl Freeze for C2Params
impl RefUnwindSafe for C2Params
impl Send for C2Params
impl Sync for C2Params
impl Unpin for C2Params
impl UnwindSafe for C2Params
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