pub struct DistinctVals { /* private fields */ }
Implementations§
Trait Implementations§
Source§impl MoState for DistinctVals
impl MoState for DistinctVals
type Q = ()
type A = usize
fn query(&self, _: &Self::Q) -> Self::A
fn insert_left(&mut self, pos: usize)
fn remove_left(&mut self, pos: usize)
Source§const L_R_RATIO: f64 = 1f64
const L_R_RATIO: f64 = 1f64
cost ratio L_OP / R_OP between a left endpoint and a right endpoint move
fn insert_right(&mut self, pos: usize)
fn remove_right(&mut self, pos: usize)
Auto Trait Implementations§
impl Freeze for DistinctVals
impl RefUnwindSafe for DistinctVals
impl Send for DistinctVals
impl Sync for DistinctVals
impl Unpin for DistinctVals
impl UnwindSafe for DistinctVals
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