[−][src]Struct mail_headers::Header
Methods
impl<H> Header<H> where
H: HeaderKind,
[src]
H: HeaderKind,
pub fn new(body: H::Component) -> Header<H>
[src]
pub fn body(&self) -> &H::Component
[src]
pub fn body_mut(&mut self) -> &mut H::Component
[src]
Trait Implementations
impl<H> HasHeaderName for Header<H> where
H: HeaderKind,
[src]
H: HeaderKind,
fn get_name(&self) -> HeaderName
[src]
impl<H> HeaderObjTrait for Header<H> where
H: HeaderKind,
[src]
H: HeaderKind,
fn name(&self) -> HeaderName
[src]
fn is_max_one(&self) -> bool
[src]
fn validator(&self) -> Option<HeaderMapValidator>
[src]
fn encode(&self, encoder: &mut EncodingWriter) -> Result<(), EncodingError>
[src]
fn boxed_clone(&self) -> Box<HeaderObj>
[src]
impl<H: Clone> Clone for Header<H> where
H: HeaderKind,
H::Component: Clone,
[src]
H: HeaderKind,
H::Component: Clone,
fn clone(&self) -> Header<H>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<H> DerefMut for Header<H> where
H: HeaderKind,
[src]
H: HeaderKind,
impl<H> Deref for Header<H> where
H: HeaderKind,
[src]
H: HeaderKind,
type Target = H::Component
The resulting type after dereferencing.
fn deref(&self) -> &Self::Target
[src]
impl<H> Debug for Header<H> where
H: HeaderKind,
[src]
H: HeaderKind,
Auto Trait Implementations
impl<H> Send for Header<H> where
<H as HeaderKind>::Component: Send,
<H as HeaderKind>::Component: Send,
impl<H> Sync for Header<H> where
<H as HeaderKind>::Component: Sync,
<H as HeaderKind>::Component: Sync,
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.