Struct Drain

pub struct Drain<'a, T> { /* private fields */ }

A drain iterator for HeaderMap.

Trait Implementations

impl<'a, T> Drop for Drain<'a, T>

fn drop(&mut self)

impl<'a, T> FusedIterator for Drain<'a, T>

impl<'a, T> Iterator for Drain<'a, T>

type Item = (Option<HeaderName>, T);
fn next(&mut self) -> Option<Self::Item>
fn size_hint(&self) -> (usize, Option<usize>)

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

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

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

impl<'a, T: Sync> Sync for Drain<'a, T>

Auto Trait Implementations

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

impl<'a, T> Freeze for Drain<'a, T> where *mut [Bucket<T>]: Freeze, *mut Vec<ExtraValue<T>>: Freeze, PhantomData<&'a mut HeaderMap<T>>: Freeze,

impl<'a, T> RefUnwindSafe for Drain<'a, T> where *mut [Bucket<T>]: RefUnwindSafe, *mut Vec<ExtraValue<T>>: RefUnwindSafe, PhantomData<&'a mut HeaderMap<T>>: RefUnwindSafe,

impl<'a, T> Unpin for Drain<'a, T> where *mut [Bucket<T>]: Unpin, *mut Vec<ExtraValue<T>>: Unpin, PhantomData<&'a mut HeaderMap<T>>: Unpin,

impl<'a, T> UnsafeUnpin for Drain<'a, T> where *mut [Bucket<T>]: UnsafeUnpin, *mut Vec<ExtraValue<T>>: UnsafeUnpin, PhantomData<&'a mut HeaderMap<T>>: UnsafeUnpin,

Blanket Implementations

impl<I> IntoIterator for Drain<'a, T> where I: Iterator,

type Item = <I as Iterator>::Item;
type IntoIter = I;
fn into_iter(self) -> I

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

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for Drain<'a, T> where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for Drain<'a, T> where T: ?Sized,

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

impl<T> From<T> for Drain<'a, T>

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into<U> for Drain<'a, T> where U: From<T>,

fn into(self) -> U

Calls U::from(self).

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

impl<T, U> TryFrom<U> for Drain<'a, T> where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for Drain<'a, T> where U: TryFrom<T>,

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