pub struct DefaultEstimator<L: EstimationLogic, BL: Borrow<L>, B> { /* private fields */ }
Expand description
A default estimator for generic EstimationLogic
and backends.
Implementations§
Source§impl<L: EstimationLogic, BL: Borrow<L>, B> DefaultEstimator<L, BL, B>
impl<L: EstimationLogic, BL: Borrow<L>, B> DefaultEstimator<L, BL, B>
Trait Implementations§
Source§impl<L: EstimationLogic + Clone, BL: Borrow<L>, B: AsMut<L::Backend>> AsMut<<L as EstimationLogic>::Backend> for DefaultEstimator<L, BL, B>
impl<L: EstimationLogic + Clone, BL: Borrow<L>, B: AsMut<L::Backend>> AsMut<<L as EstimationLogic>::Backend> for DefaultEstimator<L, BL, B>
Source§impl<L: EstimationLogic + Clone, BL: Borrow<L>, B: AsRef<L::Backend>> AsRef<<L as EstimationLogic>::Backend> for DefaultEstimator<L, BL, B>
impl<L: EstimationLogic + Clone, BL: Borrow<L>, B: AsRef<L::Backend>> AsRef<<L as EstimationLogic>::Backend> for DefaultEstimator<L, BL, B>
Source§impl<L: EstimationLogic + Clone, BL: Borrow<L>, B: AsRef<L::Backend>> Estimator<L> for DefaultEstimator<L, BL, B>
impl<L: EstimationLogic + Clone, BL: Borrow<L>, B: AsRef<L::Backend>> Estimator<L> for DefaultEstimator<L, BL, B>
Source§type OwnedEstimator = DefaultEstimator<L, L, Box<<L as EstimationLogic>::Backend>>
type OwnedEstimator = DefaultEstimator<L, L, Box<<L as EstimationLogic>::Backend>>
The type returned by
Estimator::into_owned
.Source§fn estimate(&self) -> f64
fn estimate(&self) -> f64
Returns an estimation of the number of distinct elements that have been
added to the estimator so far.
Source§fn into_owned(self) -> Self::OwnedEstimator
fn into_owned(self) -> Self::OwnedEstimator
Converts this estimator into an owned version capable of mutation.
Source§impl<L: EstimationLogic + Clone, BL: Borrow<L>, B: AsRef<L::Backend> + AsMut<L::Backend>> EstimatorMut<L> for DefaultEstimator<L, BL, B>
impl<L: EstimationLogic + Clone, BL: Borrow<L>, B: AsRef<L::Backend> + AsMut<L::Backend>> EstimatorMut<L> for DefaultEstimator<L, BL, B>
Source§impl<L: EstimationLogic + MergeEstimationLogic + Clone, BL: Borrow<L>, B: AsRef<L::Backend> + AsMut<L::Backend>> MergeEstimator<L> for DefaultEstimator<L, BL, B>
impl<L: EstimationLogic + MergeEstimationLogic + Clone, BL: Borrow<L>, B: AsRef<L::Backend> + AsMut<L::Backend>> MergeEstimator<L> for DefaultEstimator<L, BL, B>
Auto Trait Implementations§
impl<L, BL, B> Freeze for DefaultEstimator<L, BL, B>
impl<L, BL, B> RefUnwindSafe for DefaultEstimator<L, BL, B>
impl<L, BL, B> Send for DefaultEstimator<L, BL, B>
impl<L, BL, B> Sync for DefaultEstimator<L, BL, B>
impl<L, BL, B> Unpin for DefaultEstimator<L, BL, B>
impl<L, BL, B> UnwindSafe for DefaultEstimator<L, BL, B>
Blanket Implementations§
Source§impl<T> AtomicBitFieldSlice<u16> for T
impl<T> AtomicBitFieldSlice<u16> for T
Source§unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> u16
unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> u16
Returns the value at the specified index. Read more
Source§unsafe fn set_atomic_unchecked(&self, index: usize, value: u16, order: Ordering)
unsafe fn set_atomic_unchecked(&self, index: usize, value: u16, order: Ordering)
Sets the element of the slice at the specified index. Read more
Source§fn reset_atomic(&mut self, order: Ordering)
fn reset_atomic(&mut self, order: Ordering)
Sets all values to zero. Read more
Source§fn par_reset_atomic(&mut self, order: Ordering)
fn par_reset_atomic(&mut self, order: Ordering)
Sets all values to zero using a parallel implementation. Read more
Source§impl<T> AtomicBitFieldSlice<u32> for T
impl<T> AtomicBitFieldSlice<u32> for T
Source§unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> u32
unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> u32
Returns the value at the specified index. Read more
Source§unsafe fn set_atomic_unchecked(&self, index: usize, value: u32, order: Ordering)
unsafe fn set_atomic_unchecked(&self, index: usize, value: u32, order: Ordering)
Sets the element of the slice at the specified index. Read more
Source§fn reset_atomic(&mut self, order: Ordering)
fn reset_atomic(&mut self, order: Ordering)
Sets all values to zero. Read more
Source§fn par_reset_atomic(&mut self, order: Ordering)
fn par_reset_atomic(&mut self, order: Ordering)
Sets all values to zero using a parallel implementation. Read more
Source§impl<T> AtomicBitFieldSlice<u64> for T
impl<T> AtomicBitFieldSlice<u64> for T
Source§unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> u64
unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> u64
Returns the value at the specified index. Read more
Source§unsafe fn set_atomic_unchecked(&self, index: usize, value: u64, order: Ordering)
unsafe fn set_atomic_unchecked(&self, index: usize, value: u64, order: Ordering)
Sets the element of the slice at the specified index. Read more
Source§fn reset_atomic(&mut self, order: Ordering)
fn reset_atomic(&mut self, order: Ordering)
Sets all values to zero. Read more
Source§fn par_reset_atomic(&mut self, order: Ordering)
fn par_reset_atomic(&mut self, order: Ordering)
Sets all values to zero using a parallel implementation. Read more
Source§impl<T> AtomicBitFieldSlice<u8> for T
impl<T> AtomicBitFieldSlice<u8> for T
Source§unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> u8
unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> u8
Returns the value at the specified index. Read more
Source§unsafe fn set_atomic_unchecked(&self, index: usize, value: u8, order: Ordering)
unsafe fn set_atomic_unchecked(&self, index: usize, value: u8, order: Ordering)
Sets the element of the slice at the specified index. Read more
Source§fn reset_atomic(&mut self, order: Ordering)
fn reset_atomic(&mut self, order: Ordering)
Sets all values to zero. Read more
Source§fn par_reset_atomic(&mut self, order: Ordering)
fn par_reset_atomic(&mut self, order: Ordering)
Sets all values to zero using a parallel implementation. Read more
Source§impl<T> AtomicBitFieldSlice<usize> for Twhere
T: AsRef<[AtomicUsize]>,
impl<T> AtomicBitFieldSlice<usize> for Twhere
T: AsRef<[AtomicUsize]>,
Source§unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> usize
unsafe fn get_atomic_unchecked(&self, index: usize, order: Ordering) -> usize
Returns the value at the specified index. Read more
Source§unsafe fn set_atomic_unchecked(
&self,
index: usize,
value: usize,
order: Ordering,
)
unsafe fn set_atomic_unchecked( &self, index: usize, value: usize, order: Ordering, )
Sets the element of the slice at the specified index. Read more
Source§fn reset_atomic(&mut self, order: Ordering)
fn reset_atomic(&mut self, order: Ordering)
Sets all values to zero. Read more
Source§fn par_reset_atomic(&mut self, order: Ordering)
fn par_reset_atomic(&mut self, order: Ordering)
Sets all values to zero using a parallel implementation. Read more
Source§impl<T, W> AtomicHelper<W> for Twhere
W: Word + IntoAtomic,
T: AtomicBitFieldSlice<W>,
<W as IntoAtomic>::AtomicType: AtomicUnsignedInt + AsBytes,
impl<T, W> AtomicHelper<W> for Twhere
W: Word + IntoAtomic,
T: AtomicBitFieldSlice<W>,
<W as IntoAtomic>::AtomicType: AtomicUnsignedInt + AsBytes,
Source§unsafe fn get_unchecked(&self, index: usize, order: Ordering) -> W
unsafe fn get_unchecked(&self, index: usize, order: Ordering) -> W
Delegates to
AtomicBitFieldSlice::get_atomic_unchecked
Read moreSource§fn get(&self, index: usize, order: Ordering) -> W
fn get(&self, index: usize, order: Ordering) -> W
Delegates to
AtomicBitFieldSlice::set_atomic
Source§unsafe fn set_unchecked(&self, index: usize, value: W, order: Ordering)
unsafe fn set_unchecked(&self, index: usize, value: W, order: Ordering)
Delegates to
AtomicBitFieldSlice::set_atomic_unchecked
Read moreSource§fn set(&self, index: usize, value: W, order: Ordering)
fn set(&self, index: usize, value: W, order: Ordering)
Delegates to
AtomicBitFieldSlice::set_atomic
Source§fn reset(&mut self, order: Ordering)
fn reset(&mut self, order: Ordering)
Delegates to
AtomicBitFieldSlice::reset_atomic
Source§impl<T> BitFieldSlice<u128> for T
impl<T> BitFieldSlice<u128> for T
Source§impl<T> BitFieldSlice<u16> for T
impl<T> BitFieldSlice<u16> for T
Source§impl<T> BitFieldSlice<u32> for T
impl<T> BitFieldSlice<u32> for T
Source§impl<T> BitFieldSlice<u64> for T
impl<T> BitFieldSlice<u64> for T
Source§impl<T> BitFieldSlice<u8> for T
impl<T> BitFieldSlice<u8> for T
Source§impl<T> BitFieldSlice<usize> for T
impl<T> BitFieldSlice<usize> for T
Source§impl<T> BitFieldSliceCore<AtomicU16> for T
impl<T> BitFieldSliceCore<AtomicU16> for T
Source§impl<T> BitFieldSliceCore<AtomicU32> for T
impl<T> BitFieldSliceCore<AtomicU32> for T
Source§impl<T> BitFieldSliceCore<AtomicU64> for T
impl<T> BitFieldSliceCore<AtomicU64> for T
Source§impl<T> BitFieldSliceCore<AtomicU8> for T
impl<T> BitFieldSliceCore<AtomicU8> for T
Source§impl<T> BitFieldSliceCore<AtomicUsize> for Twhere
T: AsRef<[AtomicUsize]>,
impl<T> BitFieldSliceCore<AtomicUsize> for Twhere
T: AsRef<[AtomicUsize]>,
Source§impl<T> BitFieldSliceCore<i128> for T
impl<T> BitFieldSliceCore<i128> for T
Source§impl<T> BitFieldSliceCore<i16> for T
impl<T> BitFieldSliceCore<i16> for T
Source§impl<T> BitFieldSliceCore<i32> for T
impl<T> BitFieldSliceCore<i32> for T
Source§impl<T> BitFieldSliceCore<i64> for T
impl<T> BitFieldSliceCore<i64> for T
Source§impl<T> BitFieldSliceCore<i8> for T
impl<T> BitFieldSliceCore<i8> for T
Source§impl<T> BitFieldSliceCore<isize> for T
impl<T> BitFieldSliceCore<isize> for T
Source§impl<T> BitFieldSliceCore<u128> for T
impl<T> BitFieldSliceCore<u128> for T
Source§impl<T> BitFieldSliceCore<u16> for T
impl<T> BitFieldSliceCore<u16> for T
Source§impl<T> BitFieldSliceCore<u32> for T
impl<T> BitFieldSliceCore<u32> for T
Source§impl<T> BitFieldSliceCore<u64> for T
impl<T> BitFieldSliceCore<u64> for T
Source§impl<T> BitFieldSliceCore<u8> for T
impl<T> BitFieldSliceCore<u8> for T
Source§impl<T> BitFieldSliceCore<usize> for T
impl<T> BitFieldSliceCore<usize> for T
Source§impl<T> BitFieldSliceMut<u128> for T
impl<T> BitFieldSliceMut<u128> for T
type ChunksMut<'a> = ChunksMut<'a, u128> where T: 'a
Source§unsafe fn set_unchecked(&mut self, index: usize, value: u128)
unsafe fn set_unchecked(&mut self, index: usize, value: u128)
Sets the element of the slice at the specified index.
No bounds checking is performed. Read more
Source§fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
Copy part of the content of the vector to another vector. Read more
Source§fn try_chunks_mut(
&mut self,
chunk_size: usize,
) -> Result<<T as BitFieldSliceMut<u128>>::ChunksMut<'_>, ()>
fn try_chunks_mut( &mut self, chunk_size: usize, ) -> Result<<T as BitFieldSliceMut<u128>>::ChunksMut<'_>, ()>
Tries and returns an iterator over non-overlapping mutable chunks of a
bit-field slice, starting at the beginning of the slice. Read more
Source§fn as_mut_slice(&mut self) -> &mut [u128]
fn as_mut_slice(&mut self) -> &mut [u128]
Returns the backend of the slice as a mutable slice of
W
.Source§fn set(&mut self, index: usize, value: W)
fn set(&mut self, index: usize, value: W)
Sets the element of the slice at the specified index. Read more
Source§unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place without
checking bit widths. Read more
Source§fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place. Read more
Source§impl<T> BitFieldSliceMut<u16> for T
impl<T> BitFieldSliceMut<u16> for T
type ChunksMut<'a> = ChunksMut<'a, u16> where T: 'a
Source§unsafe fn set_unchecked(&mut self, index: usize, value: u16)
unsafe fn set_unchecked(&mut self, index: usize, value: u16)
Sets the element of the slice at the specified index.
No bounds checking is performed. Read more
Source§fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
Copy part of the content of the vector to another vector. Read more
Source§fn try_chunks_mut(
&mut self,
chunk_size: usize,
) -> Result<<T as BitFieldSliceMut<u16>>::ChunksMut<'_>, ()>
fn try_chunks_mut( &mut self, chunk_size: usize, ) -> Result<<T as BitFieldSliceMut<u16>>::ChunksMut<'_>, ()>
Tries and returns an iterator over non-overlapping mutable chunks of a
bit-field slice, starting at the beginning of the slice. Read more
Source§fn as_mut_slice(&mut self) -> &mut [u16]
fn as_mut_slice(&mut self) -> &mut [u16]
Returns the backend of the slice as a mutable slice of
W
.Source§fn set(&mut self, index: usize, value: W)
fn set(&mut self, index: usize, value: W)
Sets the element of the slice at the specified index. Read more
Source§unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place without
checking bit widths. Read more
Source§fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place. Read more
Source§impl<T> BitFieldSliceMut<u32> for T
impl<T> BitFieldSliceMut<u32> for T
type ChunksMut<'a> = ChunksMut<'a, u32> where T: 'a
Source§unsafe fn set_unchecked(&mut self, index: usize, value: u32)
unsafe fn set_unchecked(&mut self, index: usize, value: u32)
Sets the element of the slice at the specified index.
No bounds checking is performed. Read more
Source§fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
Copy part of the content of the vector to another vector. Read more
Source§fn try_chunks_mut(
&mut self,
chunk_size: usize,
) -> Result<<T as BitFieldSliceMut<u32>>::ChunksMut<'_>, ()>
fn try_chunks_mut( &mut self, chunk_size: usize, ) -> Result<<T as BitFieldSliceMut<u32>>::ChunksMut<'_>, ()>
Tries and returns an iterator over non-overlapping mutable chunks of a
bit-field slice, starting at the beginning of the slice. Read more
Source§fn as_mut_slice(&mut self) -> &mut [u32]
fn as_mut_slice(&mut self) -> &mut [u32]
Returns the backend of the slice as a mutable slice of
W
.Source§fn set(&mut self, index: usize, value: W)
fn set(&mut self, index: usize, value: W)
Sets the element of the slice at the specified index. Read more
Source§unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place without
checking bit widths. Read more
Source§fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place. Read more
Source§impl<T> BitFieldSliceMut<u64> for T
impl<T> BitFieldSliceMut<u64> for T
type ChunksMut<'a> = ChunksMut<'a, u64> where T: 'a
Source§unsafe fn set_unchecked(&mut self, index: usize, value: u64)
unsafe fn set_unchecked(&mut self, index: usize, value: u64)
Sets the element of the slice at the specified index.
No bounds checking is performed. Read more
Source§fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
Copy part of the content of the vector to another vector. Read more
Source§fn try_chunks_mut(
&mut self,
chunk_size: usize,
) -> Result<<T as BitFieldSliceMut<u64>>::ChunksMut<'_>, ()>
fn try_chunks_mut( &mut self, chunk_size: usize, ) -> Result<<T as BitFieldSliceMut<u64>>::ChunksMut<'_>, ()>
Tries and returns an iterator over non-overlapping mutable chunks of a
bit-field slice, starting at the beginning of the slice. Read more
Source§fn as_mut_slice(&mut self) -> &mut [u64]
fn as_mut_slice(&mut self) -> &mut [u64]
Returns the backend of the slice as a mutable slice of
W
.Source§fn set(&mut self, index: usize, value: W)
fn set(&mut self, index: usize, value: W)
Sets the element of the slice at the specified index. Read more
Source§unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place without
checking bit widths. Read more
Source§fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place. Read more
Source§impl<T> BitFieldSliceMut<u8> for T
impl<T> BitFieldSliceMut<u8> for T
type ChunksMut<'a> = ChunksMut<'a, u8> where T: 'a
Source§unsafe fn set_unchecked(&mut self, index: usize, value: u8)
unsafe fn set_unchecked(&mut self, index: usize, value: u8)
Sets the element of the slice at the specified index.
No bounds checking is performed. Read more
Source§fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
Copy part of the content of the vector to another vector. Read more
Source§fn try_chunks_mut(
&mut self,
chunk_size: usize,
) -> Result<<T as BitFieldSliceMut<u8>>::ChunksMut<'_>, ()>
fn try_chunks_mut( &mut self, chunk_size: usize, ) -> Result<<T as BitFieldSliceMut<u8>>::ChunksMut<'_>, ()>
Tries and returns an iterator over non-overlapping mutable chunks of a
bit-field slice, starting at the beginning of the slice. Read more
Source§fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
fn as_mut_slice(&mut self) -> &mut [u8] ⓘ
Returns the backend of the slice as a mutable slice of
W
.Source§fn set(&mut self, index: usize, value: W)
fn set(&mut self, index: usize, value: W)
Sets the element of the slice at the specified index. Read more
Source§unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place without
checking bit widths. Read more
Source§fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place. Read more
Source§impl<T> BitFieldSliceMut<usize> for T
impl<T> BitFieldSliceMut<usize> for T
type ChunksMut<'a> = ChunksMut<'a, usize> where T: 'a
Source§unsafe fn set_unchecked(&mut self, index: usize, value: usize)
unsafe fn set_unchecked(&mut self, index: usize, value: usize)
Sets the element of the slice at the specified index.
No bounds checking is performed. Read more
Source§fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
fn copy(&self, from: usize, dst: &mut T, to: usize, len: usize)
Copy part of the content of the vector to another vector. Read more
Source§fn try_chunks_mut(
&mut self,
chunk_size: usize,
) -> Result<<T as BitFieldSliceMut<usize>>::ChunksMut<'_>, ()>
fn try_chunks_mut( &mut self, chunk_size: usize, ) -> Result<<T as BitFieldSliceMut<usize>>::ChunksMut<'_>, ()>
Tries and returns an iterator over non-overlapping mutable chunks of a
bit-field slice, starting at the beginning of the slice. Read more
Source§fn as_mut_slice(&mut self) -> &mut [usize]
fn as_mut_slice(&mut self) -> &mut [usize]
Returns the backend of the slice as a mutable slice of
W
.Source§fn set(&mut self, index: usize, value: W)
fn set(&mut self, index: usize, value: W)
Sets the element of the slice at the specified index. Read more
Source§unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
unsafe fn apply_in_place_unchecked<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place without
checking bit widths. Read more
Source§fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
fn apply_in_place<F>(&mut self, f: F)where
F: FnMut(W) -> W,
Self: BitFieldSlice<W>,
Applies a function to all elements of the slice in place. Read more
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
Source§impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
impl<T, U> CastableInto<U> for Twhere
U: CastableFrom<T>,
Source§impl<T> DowncastableFrom<T> for T
impl<T> DowncastableFrom<T> for T
Source§fn downcast_from(value: T) -> T
fn downcast_from(value: T) -> T
Truncate the current UnsignedInt to a possibly smaller size
Source§impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
impl<T, U> DowncastableInto<U> for Twhere
U: DowncastableFrom<T>,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<S> ParseFormatted for S
impl<S> ParseFormatted for S
Source§fn parse_formatted<F, N>(&self, format: &F) -> Result<N, Error>where
F: Format,
N: FromFormattedStr,
fn parse_formatted<F, N>(&self, format: &F) -> Result<N, Error>where
F: Format,
N: FromFormattedStr,
Converts
self
(typically a formatted string) into a number (see Examples above).Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> UpcastableFrom<T> for T
impl<T> UpcastableFrom<T> for T
Source§fn upcast_from(value: T) -> T
fn upcast_from(value: T) -> T
Extend the current UnsignedInt to a possibly bigger size.