pub struct CCHMetric<'a> { /* private fields */ }
Implementations§
Source§impl<'a> CCHMetric<'a>
impl<'a> CCHMetric<'a>
Sourcepub fn new(cch: &'a CCH, weights: Vec<u32>) -> Self
pub fn new(cch: &'a CCH, weights: Vec<u32>) -> Self
Create and customize a metric (weight binding) for a given CCH
.
Owns the weight vector so that future partial updates can safely mutate it.
The C++ side stores only a raw pointer; it is valid for the lifetime of self
.
Auto Trait Implementations§
impl<'a> Freeze for CCHMetric<'a>
impl<'a> RefUnwindSafe for CCHMetric<'a>
impl<'a> Send for CCHMetric<'a>
impl<'a> Sync for CCHMetric<'a>
impl<'a> Unpin for CCHMetric<'a>
impl<'a> UnwindSafe for CCHMetric<'a>
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