pub struct GapFillingCounter<T, HO>{ /* private fields */ }
Expand description
Increments a number returning “gap” mumbers, numbers that are reported to be no longer “be in use”, first.
Implementations§
Source§impl<T, HO> GapFillingCounter<T, HO>
impl<T, HO> GapFillingCounter<T, HO>
pub fn new_has_one(has_one: HO) -> Self
pub fn start_at_has_one(value: T, has_one: HO) -> Self
pub fn next(&mut self) -> T
pub fn un_gap_value(&mut self, val: T) -> bool
pub fn gaps_len(&self) -> usize
pub fn new_i8() -> GapFillingCounter<i8, I8HasOne>
pub fn new_i16() -> GapFillingCounter<i16, I16HasOne>
pub fn new_i32() -> GapFillingCounter<i32, I32HasOne>
pub fn new_i64() -> GapFillingCounter<i64, I64HasOne>
pub fn new_i128() -> GapFillingCounter<i128, I128HasOne>
pub fn new_isize() -> GapFillingCounter<isize, ISizeHasOne>
pub fn new_u8() -> GapFillingCounter<u8, U8HasOne>
pub fn new_u16() -> GapFillingCounter<u16, U16HasOne>
pub fn new_u32() -> GapFillingCounter<u32, U32HasOne>
pub fn new_u64() -> GapFillingCounter<u64, U64HasOne>
pub fn new_u128() -> GapFillingCounter<u128, U128HasOne>
pub fn new_usize() -> GapFillingCounter<usize, USizeHasOne>
Trait Implementations§
Auto Trait Implementations§
impl<T, HO> Freeze for GapFillingCounter<T, HO>
impl<T, HO> RefUnwindSafe for GapFillingCounter<T, HO>where
T: RefUnwindSafe,
HO: RefUnwindSafe,
impl<T, HO> Send for GapFillingCounter<T, HO>
impl<T, HO> Sync for GapFillingCounter<T, HO>
impl<T, HO> Unpin for GapFillingCounter<T, HO>
impl<T, HO> UnwindSafe for GapFillingCounter<T, HO>where
T: UnwindSafe,
HO: UnwindSafe,
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