Struct Drain
pub struct Drain<'a> { /* private fields */ }
Draining parallel iterator that moves a range of characters out of a string, but keeps the total capacity.
Trait Implementations
impl<'a> Debug for Drain<'a>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'a> Drop for Drain<'a>
fn drop(&mut self)
impl<'a> ParallelIterator for Drain<'a>
type Item = char;fn drive_unindexed<C>(self, consumer: C) -> C::Result where C: UnindexedConsumer<Self::Item>,
Auto Trait Implementations
impl<'a> !UnwindSafe for Drain<'a>
impl<'a> Freeze for Drain<'a>
impl<'a> RefUnwindSafe for Drain<'a>
impl<'a> Send for Drain<'a>
impl<'a> Sync for Drain<'a>
impl<'a> Unpin for Drain<'a>
impl<'a> UnsafeUnpin for Drain<'a>
Blanket Implementations
impl<T> Any for Drain<'a>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Drain<'a>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Drain<'a>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> From<T> for Drain<'a>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> IntoEither for Drain<'a>
impl<T> IntoParallelIterator for Drain<'a>
where
T: ParallelIterator,
type Iter = T;type Item = <T as ParallelIterator>::Item;fn into_par_iter(self) -> T
impl<T> Pointable for Drain<'a>
const ALIGN: usize = _;type Init = T;unsafe fn init(init: <T as Pointable>::Init) -> usizeunsafe fn deref<'a>(ptr: usize) -> &'a Tunsafe fn deref_mut<'a>(ptr: usize) -> &'a mut Tunsafe fn drop(ptr: usize)
impl<T, U> Into<U> for Drain<'a>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Drain<'a>
where
U: Into<T>,
type Error = never;fn try_from(value: U) -> Result<T, never>
impl<T, U> TryInto<U> for Drain<'a>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>