Enum base64::DecodeSliceError
source · [−]pub enum DecodeSliceError {
DecodeError(DecodeError),
OutputSliceTooSmall,
}
Expand description
Errors that can occur while decoding into a slice.
Variants
DecodeError(DecodeError)
A DecodeError occurred
OutputSliceTooSmall
The provided slice may be too small.
The check is conservative (assumes the last triplet of output bytes will all be needed).
Trait Implementations
sourceimpl Clone for DecodeSliceError
impl Clone for DecodeSliceError
sourcefn clone(&self) -> DecodeSliceError
fn clone(&self) -> DecodeSliceError
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 DecodeSliceError
impl Debug for DecodeSliceError
sourceimpl Display for DecodeSliceError
impl Display for DecodeSliceError
sourceimpl Error for DecodeSliceError
impl Error for DecodeSliceError
sourcefn cause(&self) -> Option<&dyn Error>
fn cause(&self) -> Option<&dyn Error>
👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
1.30.0 · sourcefn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
sourceimpl From<DecodeError> for DecodeSliceError
impl From<DecodeError> for DecodeSliceError
sourcefn from(e: DecodeError) -> Self
fn from(e: DecodeError) -> Self
Converts to this type from the input type.
sourceimpl PartialEq<DecodeSliceError> for DecodeSliceError
impl PartialEq<DecodeSliceError> for DecodeSliceError
sourcefn eq(&self, other: &DecodeSliceError) -> bool
fn eq(&self, other: &DecodeSliceError) -> bool
impl Eq for DecodeSliceError
impl StructuralEq for DecodeSliceError
impl StructuralPartialEq for DecodeSliceError
Auto Trait Implementations
impl RefUnwindSafe for DecodeSliceError
impl Send for DecodeSliceError
impl Sync for DecodeSliceError
impl Unpin for DecodeSliceError
impl UnwindSafe for DecodeSliceError
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