Enum base64::engine::DecodePaddingMode
source · [−]pub enum DecodePaddingMode {
Indifferent,
RequireCanonical,
RequireNone,
}
Expand description
Controls how pad bytes are handled when decoding.
Each Engine must support at least the behavior indicated by DecodePaddingMode::RequireCanonical, and may support other modes.
Variants
Indifferent
Canonical padding is allowed, but any fewer padding bytes than that is also allowed.
RequireCanonical
Padding must be canonical (0, 1, or 2 =
as needed to produce a 4 byte suffix).
RequireNone
Padding must be absent – for when you want predictable padding, without any wasted bytes.
Trait Implementations
sourceimpl Clone for DecodePaddingMode
impl Clone for DecodePaddingMode
sourcefn clone(&self) -> DecodePaddingMode
fn clone(&self) -> DecodePaddingMode
Returns a copy of the value. Read more
1.0.0 · sourceconst fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for DecodePaddingMode
impl Debug for DecodePaddingMode
sourceimpl PartialEq<DecodePaddingMode> for DecodePaddingMode
impl PartialEq<DecodePaddingMode> for DecodePaddingMode
sourcefn eq(&self, other: &DecodePaddingMode) -> bool
fn eq(&self, other: &DecodePaddingMode) -> bool
impl Copy for DecodePaddingMode
impl Eq for DecodePaddingMode
impl StructuralEq for DecodePaddingMode
impl StructuralPartialEq for DecodePaddingMode
Auto Trait Implementations
impl RefUnwindSafe for DecodePaddingMode
impl Send for DecodePaddingMode
impl Sync for DecodePaddingMode
impl Unpin for DecodePaddingMode
impl UnwindSafe for DecodePaddingMode
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