Struct rfc2047_decoder::Decoder
source · [−]pub struct Decoder {
pub skip_encoded_word_length: bool,
}Expand description
Represents the decoder builder.
let decoder = rfc2047_decoder::Decoder::new().skip_encoded_word_length(true);
let decoded_str = decoder.decode("=?UTF-8?B?c3Ry?=");Fields
skip_encoded_word_length: boolImplementations
sourceimpl Decoder
impl Decoder
sourcepub fn skip_encoded_word_length(self, b: bool) -> Self
pub fn skip_encoded_word_length(self, b: bool) -> Self
Sets option to skip encoded word length verification.
Trait Implementations
impl Eq for Decoder
impl StructuralEq for Decoder
impl StructuralPartialEq for Decoder
Auto Trait Implementations
impl RefUnwindSafe for Decoder
impl Send for Decoder
impl Sync for Decoder
impl Unpin for Decoder
impl UnwindSafe for Decoder
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