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§
source§impl Clone for DecodePaddingMode
impl Clone for DecodePaddingMode
source§fn clone(&self) -> DecodePaddingMode
fn clone(&self) -> DecodePaddingMode
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 DecodePaddingMode
impl Debug for DecodePaddingMode
source§impl PartialEq<DecodePaddingMode> for DecodePaddingMode
impl PartialEq<DecodePaddingMode> for DecodePaddingMode
source§fn eq(&self, other: &DecodePaddingMode) -> bool
fn eq(&self, other: &DecodePaddingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.