Struct SliceParAccessMut

Source
pub struct SliceParAccessMut<'a, T> { /* private fields */ }
Expand description

Parallel access to a mutable slice.

Implementations§

Source§

impl<'a, T> SliceParAccessMut<'a, T>

Source

pub fn from_slice_mut(slice: &'a mut [T]) -> Self

Obtain parallel access to a mutable slice.

In most cases, prefer to go through the implementation of IntoParAccess instead of this method directly.

Trait Implementations§

Source§

impl<'a, T: Send> BoundedParAccess<usize> for SliceParAccessMut<'a, T>

Source§

fn in_bounds(&self, index: usize) -> bool

Determine if the provided index is in bounds. Read more
Source§

fn bounds(&self) -> Bounds<usize>

The bounds of this data structure. Read more
Source§

unsafe fn get_unsync(&self, index: Index) -> Self::Record
where Index: RecordIndex,

Unsynchronized mutable lookup of record. Read more
Source§

impl<'a, T: Debug> Debug for SliceParAccessMut<'a, T>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a, T: Send> LinearParAccess for SliceParAccessMut<'a, T>

Source§

fn collection_len(&self) -> usize

The number of accessible records in the collection. Read more
Source§

impl<'a, T: Send> ParAccess<usize> for SliceParAccessMut<'a, T>

Source§

type Record = &'a mut T

A record (element) in the underlying collection.
Source§

unsafe fn clone_access(&self) -> Self

Clones this access. Read more
Source§

unsafe fn get_unsync_unchecked(&self, index: usize) -> Self::Record

Unsynchronized lookup of record without bounds checks. Read more
Source§

impl<'a, T: Send> Send for SliceParAccessMut<'a, T>

Source§

impl<'a, T: Send> Sync for SliceParAccessMut<'a, T>

Auto Trait Implementations§

§

impl<'a, T> Freeze for SliceParAccessMut<'a, T>

§

impl<'a, T> RefUnwindSafe for SliceParAccessMut<'a, T>
where T: RefUnwindSafe,

§

impl<'a, T> Unpin for SliceParAccessMut<'a, T>

§

impl<'a, T> !UnwindSafe for SliceParAccessMut<'a, T>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<Index, Access> IntoParAccess<Index> for Access
where Index: Copy, Access: BoundedParAccess<Index>,

Source§

type Access = Access

The access type obtained through this trait.
Source§

fn into_par_access(self) -> <Access as IntoParAccess<Index>>::Access

Obtain parallel access to this collection.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.