pub struct SliceEstimatorArray<L, W, S> { /* private fields */ }
Expand description
An array for estimators implementing a shared EstimationLogic
, and whose
backend is a slice.
Note that we need a specific type for arrays of slice backends as one cannot create a slice of slices.
Implementations§
Source§impl<L: SliceEstimationLogic<W>, W, S: AsRef<[W]>> SliceEstimatorArray<L, W, S>
impl<L: SliceEstimationLogic<W>, W, S: AsRef<[W]>> SliceEstimatorArray<L, W, S>
Trait Implementations§
Source§impl<L: SliceEstimationLogic<W> + Clone + Sync, W: Word, S: AsMut<[W]>> AsSyncArray<L> for SliceEstimatorArray<L, W, S>
impl<L: SliceEstimationLogic<W> + Clone + Sync, W: Word, S: AsMut<[W]>> AsSyncArray<L> for SliceEstimatorArray<L, W, S>
type SyncEstimatorArray<'a> = SyncSliceEstimatorArray<L, W, &'a [SyncCell<W>]> where Self: 'a
Source§fn as_sync_array(&mut self) -> SyncSliceEstimatorArray<L, W, &[SyncCell<W>]>
fn as_sync_array(&mut self) -> SyncSliceEstimatorArray<L, W, &[SyncCell<W>]>
Converts a mutable reference to this type into a shared reference
to a
SyncEstimatorArray
.Source§impl<L: SliceEstimationLogic<W> + Clone, W: Word, S: AsRef<[W]>> EstimatorArray<L> for SliceEstimatorArray<L, W, S>
impl<L: SliceEstimationLogic<W> + Clone, W: Word, S: AsRef<[W]>> EstimatorArray<L> for SliceEstimatorArray<L, W, S>
Source§type Estimator<'a> = DefaultEstimator<L, &'a L, &'a [W]>
where
Self: 'a
type Estimator<'a> = DefaultEstimator<L, &'a L, &'a [W]> where Self: 'a
The type of immutable estimator returned by
get_estimator
.Source§fn get_backend(&self, index: usize) -> &L::Backend
fn get_backend(&self, index: usize) -> &L::Backend
Returns an immutable reference to the backend of the estimator at the
specified index. Read more
Source§impl<L: SliceEstimationLogic<W> + Clone, W: Word, S: AsRef<[W]> + AsMut<[W]>> EstimatorArrayMut<L> for SliceEstimatorArray<L, W, S>
impl<L: SliceEstimationLogic<W> + Clone, W: Word, S: AsRef<[W]> + AsMut<[W]>> EstimatorArrayMut<L> for SliceEstimatorArray<L, W, S>
Source§type EstimatorMut<'a> = DefaultEstimator<L, &'a L, &'a mut [W]>
where
Self: 'a
type EstimatorMut<'a> = DefaultEstimator<L, &'a L, &'a mut [W]> where Self: 'a
The type of mutable estimator returned by
get_estimator_mut
.Source§fn get_backend_mut(&mut self, index: usize) -> &mut L::Backend
fn get_backend_mut(&mut self, index: usize) -> &mut L::Backend
Returns a mutable reference to the backend of the estimator at the
specified index. Read more
Source§fn get_estimator_mut(&mut self, index: usize) -> Self::EstimatorMut<'_>
fn get_estimator_mut(&mut self, index: usize) -> Self::EstimatorMut<'_>
Returns the estimator at the specified index as a mutable estimator. Read more
Auto Trait Implementations§
impl<L, W, S> Freeze for SliceEstimatorArray<L, W, S>
impl<L, W, S> RefUnwindSafe for SliceEstimatorArray<L, W, S>
impl<L, W, S> Send for SliceEstimatorArray<L, W, S>
impl<L, W, S> Sync for SliceEstimatorArray<L, W, S>
impl<L, W, S> Unpin for SliceEstimatorArray<L, W, S>
impl<L, W, S> UnwindSafe for SliceEstimatorArray<L, W, S>
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<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.