pub enum EncodedWordEncoding {
Base64,
QuotedPrintable,
}Variants
Implementations
sourceimpl EncodedWordEncoding
impl EncodedWordEncoding
sourcepub fn acronym(&self) -> &'static SoftAsciiStr
pub fn acronym(&self) -> &'static SoftAsciiStr
returns the acronym for the given encoding used in a encoded word
sourcepub fn encode<R, O>(&self, input: R, out: &mut O)where
R: AsRef<str>,
O: EncodedWordWriter,
pub fn encode<R, O>(&self, input: R, out: &mut O)where
R: AsRef<str>,
O: EncodedWordWriter,
encodes a given utf8 string
either self::quoted_printable::encoded_word_encode
or self::base64::encoded_word_encode_utf8 is used
depending on which value self is.
As both algorithm need to know about code point boundaries only encoding utf8 is supported for now
Trait Implementations
sourceimpl Clone for EncodedWordEncoding
impl Clone for EncodedWordEncoding
sourcefn clone(&self) -> EncodedWordEncoding
fn clone(&self) -> EncodedWordEncoding
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresourceimpl Debug for EncodedWordEncoding
impl Debug for EncodedWordEncoding
sourceimpl Hash for EncodedWordEncoding
impl Hash for EncodedWordEncoding
sourceimpl PartialEq<EncodedWordEncoding> for EncodedWordEncoding
impl PartialEq<EncodedWordEncoding> for EncodedWordEncoding
sourcefn eq(&self, other: &EncodedWordEncoding) -> bool
fn eq(&self, other: &EncodedWordEncoding) -> bool
impl Copy for EncodedWordEncoding
impl Eq for EncodedWordEncoding
impl StructuralEq for EncodedWordEncoding
impl StructuralPartialEq for EncodedWordEncoding
Auto Trait Implementations
impl RefUnwindSafe for EncodedWordEncoding
impl Send for EncodedWordEncoding
impl Sync for EncodedWordEncoding
impl Unpin for EncodedWordEncoding
impl UnwindSafe for EncodedWordEncoding
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