pub struct Drain<'a, T, S: Shape<Buffer<T, A> = DynBuffer<T, S, A>>, A: Allocator = Global> { /* private fields */ }Expand description
Buffer for moving elements out of an array range.
Trait Implementations§
Source§impl<T, S: Shape<Buffer<T, A> = DynBuffer<T, S, A>>, A: Allocator> Buffer for Drain<'_, T, S, A>
impl<T, S: Shape<Buffer<T, A> = DynBuffer<T, S, A>>, A: Allocator> Buffer for Drain<'_, T, S, A>
Source§type Item = ManuallyDrop<T>
type Item = ManuallyDrop<T>
Array element type.
Source§fn as_mut_slice(&mut self) -> &mut Slice<ManuallyDrop<T>, S>
fn as_mut_slice(&mut self) -> &mut Slice<ManuallyDrop<T>, S>
Returns a mutable slice containing the array buffer.
Source§fn as_slice(&self) -> &Slice<ManuallyDrop<T>, S>
fn as_slice(&self) -> &Slice<ManuallyDrop<T>, S>
Returns a slice containing the array buffer.
Auto Trait Implementations§
impl<'a, T, S, A> Freeze for Drain<'a, T, S, A>where
S: Freeze,
impl<'a, T, S, A> RefUnwindSafe for Drain<'a, T, S, A>
impl<'a, T, S, A> Send for Drain<'a, T, S, A>
impl<'a, T, S, A> Sync for Drain<'a, T, S, A>
impl<'a, T, S, A> Unpin for Drain<'a, T, S, A>where
S: Unpin,
impl<'a, T, S, A = Global> !UnwindSafe for Drain<'a, T, S, A>
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