pub struct SliceEstimatorArray<L, W = usize, S = Box<[W]>> { /* 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§
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> UnsafeUnpin for SliceEstimatorArray<L, W, S>where
L: UnsafeUnpin,
S: UnsafeUnpin,
impl<L, W, S> UnwindSafe for SliceEstimatorArray<L, W, S>
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