sync_cell_slice

Trait SyncSlice

Source
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§

Source

fn as_sync_slice(&mut self) -> &[SyncCell<T>]

Returns a &[SyncCell<T>] from a &mut [T].

Implementations on Foreign Types§

Source§

impl<T> SyncSlice<T> for [T]

Source§

fn as_sync_slice(&mut self) -> &[SyncCell<T>]

Implementors§