Struct mail_internals::encoder::EncodeFn
source · pub struct EncodeFn(_);Expand description
A wrapper for an function making it implement EncodableInHeader.
Implementations
sourceimpl EncodeFn
impl EncodeFn
pub fn new(
func: for<'a, 'b> fn(_: &'a mut EncodingWriter<'b>) -> Result<(), EncodingError>
) -> Self
Trait Implementations
sourceimpl EncodableInHeader for EncodeFn
impl EncodableInHeader for EncodeFn
fn encode(&self, encoder: &mut EncodingWriter<'_>) -> Result<(), EncodingError>
fn boxed_clone(&self) -> Box<dyn EncodableInHeader>
impl Copy for EncodeFn
Auto Trait Implementations
impl RefUnwindSafe for EncodeFn
impl Send for EncodeFn
impl Sync for EncodeFn
impl Unpin for EncodeFn
impl UnwindSafe for EncodeFn
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more