pub struct ChooseArgs { /* private fields */ }Implementations§
Source§impl ChooseArgs
impl ChooseArgs
pub fn get_weight_set( &self, bucket_id: i32, position: usize, ) -> Option<WeightSet<'_>>
pub fn get_ids(&self, bucket_id: i32) -> Option<&[i32]>
pub fn set_weight_set_size(&mut self, bucket_id: i32, size: u32)
pub fn clear_weight_set(&mut self, bucket_id: i32)
pub fn swap_weights( &mut self, bucket_id: i32, position: usize, idx1: usize, idx2: usize, ) -> Result<(), &'static str>
pub fn set_id( &mut self, bucket_id: i32, idx: usize, new_id: i32, ) -> Result<(), &'static str>
Trait Implementations§
Source§impl Debug for ChooseArgs
impl Debug for ChooseArgs
Auto Trait Implementations§
impl Freeze for ChooseArgs
impl RefUnwindSafe for ChooseArgs
impl !Send for ChooseArgs
impl !Sync for ChooseArgs
impl Unpin for ChooseArgs
impl UnwindSafe for ChooseArgs
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