pub trait SyncSlice<T> {
// Required method
fn as_sync_slice(&mut self) -> &[SyncCell<T>];
}Expand description
Extension trait turning a mutable reference to a slice of T into a
reference to a slice of SyncCell<T>.
The resulting slice is Sync if T is Sync.
Required Methods§
Sourcefn as_sync_slice(&mut self) -> &[SyncCell<T>]
fn as_sync_slice(&mut self) -> &[SyncCell<T>]
Returns a &[SyncCell<T>] from a &mut [T].