[−][src]Trait mail_internals::encoder::EncodableInHeader
Trait Implemented by "components" used in header field bodies
This trait can be turned into a trait object allowing runtime genericallity over the "components" if needed.
Required methods
fn encode(&self, encoder: &mut EncodingWriter) -> Result<(), EncodingError>
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>
Methods
impl dyn EncodableInHeader
[src]
pub fn is<T: EncodableInHeader>(&self) -> bool
[src]
pub fn downcast_ref<T: EncodableInHeader>(&self) -> Option<&T>
[src]
pub fn downcast_mut<T: EncodableInHeader>(&mut self) -> Option<&mut T>
[src]
Implementors
impl EncodableInHeader for EncodeFn
[src]
fn encode(&self, encoder: &mut EncodingWriter) -> Result<(), EncodingError>
[src]
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>
[src]
impl<FN: 'static> EncodableInHeader for EncodeClosure<FN> where
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError>,
[src]
FN: Send + Sync + for<'a, 'b> Fn(&'a mut EncodingWriter<'b>) -> Result<(), EncodingError>,