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 for DecodePaddingMode
impl PartialEq 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 ==
.impl Copy for DecodePaddingMode
impl Eq for DecodePaddingMode
impl StructuralPartialEq for DecodePaddingMode
Auto Trait Implementations§
impl Freeze for DecodePaddingMode
impl RefUnwindSafe for DecodePaddingMode
impl Send for DecodePaddingMode
impl Sync for DecodePaddingMode
impl Unpin for DecodePaddingMode
impl UnwindSafe for DecodePaddingMode
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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)