[][src]Struct mail::header_map::TypedBodies

pub struct TypedBodies<'a, H> where
    H: HeaderKind
{ /* fields omitted */ }

Iterator over all boxed bodies for a given header name with knows which type they should have

This iterator will automatically try to cast each header body of this header to H::Component, i.e. the type this body should have.

Trait Implementations

impl<'a, H> Clone for TypedBodies<'a, H> where
    H: HeaderKind
[src]

impl<'a, H> Debug for TypedBodies<'a, H> where
    H: HeaderKind
[src]

impl<'a, H> ExactSizeIterator for TypedBodies<'a, H> where
    H: HeaderKind
[src]

impl<'a, H> From<EntryValues<'a, dyn HeaderObjTrait + 'static>> for TypedBodies<'a, H> where
    H: HeaderKind
[src]

impl<'a, H> Iterator for TypedBodies<'a, H> where
    H: HeaderKind
[src]

type Item = Result<&'a Header<H>, HeaderTypeError>

The type of the elements being iterated over.

Auto Trait Implementations

impl<'a, H> !RefUnwindSafe for TypedBodies<'a, H>

impl<'a, H> !Send for TypedBodies<'a, H>

impl<'a, H> !Sync for TypedBodies<'a, H>

impl<'a, H> Unpin for TypedBodies<'a, H> where
    H: Unpin

impl<'a, H> !UnwindSafe for TypedBodies<'a, H>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Erased for T

impl<T> From<T> for T[src]

impl<T> HeaderTryFrom<T> for T[src]

impl<F, T> HeaderTryInto<T> for F where
    T: HeaderTryFrom<F>, 
[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

impl<I> IteratorRandom for I where
    I: Iterator
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,