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> 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.