pub enum EncodedWordEncoding {
Base64,
QuotedPrintable,
}
Variants§
Implementations§
Source§impl 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)
pub fn encode<R, O>(&self, input: R, out: &mut O)
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§
Source§impl Clone for EncodedWordEncoding
impl Clone for EncodedWordEncoding
Source§fn clone(&self) -> EncodedWordEncoding
fn clone(&self) -> EncodedWordEncoding
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for EncodedWordEncoding
impl Debug for EncodedWordEncoding
Source§impl Hash for EncodedWordEncoding
impl Hash for EncodedWordEncoding
Source§impl PartialEq for EncodedWordEncoding
impl PartialEq for EncodedWordEncoding
impl Copy for EncodedWordEncoding
impl Eq for EncodedWordEncoding
impl StructuralPartialEq for EncodedWordEncoding
Auto Trait Implementations§
impl Freeze for EncodedWordEncoding
impl RefUnwindSafe for EncodedWordEncoding
impl Send for EncodedWordEncoding
impl Sync for EncodedWordEncoding
impl Unpin for EncodedWordEncoding
impl UnwindSafe for EncodedWordEncoding
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more