AsSyncArray

Trait AsSyncArray 

Source
pub trait AsSyncArray<L: EstimationLogic + ?Sized> {
    type SyncEstimatorArray<'a>: SyncEstimatorArray<L>
       where Self: 'a;

    // Required method
    fn as_sync_array(&mut self) -> Self::SyncEstimatorArray<'_>;
}
Expand description

A trait for estimator arrays that can be viewed as a SyncEstimatorArray.

Required Associated Types§

Source

type SyncEstimatorArray<'a>: SyncEstimatorArray<L> where Self: 'a

Required Methods§

Source

fn as_sync_array(&mut self) -> Self::SyncEstimatorArray<'_>

Converts a mutable reference to this type into a shared reference to a SyncEstimatorArray.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<L: SliceEstimationLogic<W> + Clone + Sync, W: Word, S: AsMut<[W]>> AsSyncArray<L> for SliceEstimatorArray<L, W, S>

Source§

type SyncEstimatorArray<'a> = SyncSliceEstimatorArray<L, W, &'a [SyncCell<W>]> where Self: 'a