pub struct Guard<S> { /* private fields */ }
Expand description
The guard is used to recover the owning data from Chunks.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for Guard<S>
impl<S> RefUnwindSafe for Guard<S>where
S: RefUnwindSafe,
impl<S> Send for Guard<S>
impl<S> Sync for Guard<S>
impl<S> Unpin for Guard<S>
impl<S> UnwindSafe for Guard<S>where
S: RefUnwindSafe,
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<S, T> ConcurrentSlice<T> for S
impl<S, T> ConcurrentSlice<T> for S
Source§fn concurrent_split_at(self, index: usize) -> (Chunk<Self, T>, Chunk<Self, T>)
fn concurrent_split_at(self, index: usize) -> (Chunk<Self, T>, Chunk<Self, T>)
Splits the slice-like data into two sub-slices, divided at specified index. Read more
Source§fn concurrent_chunks(self, chunk_size: usize) -> Chunks<Self, T> ⓘ
fn concurrent_chunks(self, chunk_size: usize) -> Chunks<Self, T> ⓘ
Returns an iterator of roughly fixed-sized chunks of the slice. Read more
Source§fn concurrent_chunks_by_division(
self,
division: impl Into<Option<usize>>,
) -> Chunks<Self, T> ⓘ
fn concurrent_chunks_by_division( self, division: impl Into<Option<usize>>, ) -> Chunks<Self, T> ⓘ
Returns an iterator with roughly
division
length of roughly fixed-sized chunks of the slice. Read moreSource§fn owning_iter(self) -> Iter<Self, T> ⓘ
fn owning_iter(self) -> Iter<Self, T> ⓘ
Returns an iterator of owned references to each element of the slice.