Enum bdk_chain::bitcoin::base64::DecodeSliceError
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§
§impl Clone for DecodeSliceError
impl Clone for DecodeSliceError
§fn clone(&self) -> DecodeSliceError
fn clone(&self) -> DecodeSliceError
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 more§impl Debug for DecodeSliceError
impl Debug for DecodeSliceError
§impl Display for DecodeSliceError
impl Display for DecodeSliceError
§impl Error for DecodeSliceError
impl Error for DecodeSliceError
§fn 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 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
§impl From<DecodeError> for DecodeSliceError
impl From<DecodeError> for DecodeSliceError
§fn from(e: DecodeError) -> DecodeSliceError
fn from(e: DecodeError) -> DecodeSliceError
Converts to this type from the input type.
§impl PartialEq for DecodeSliceError
impl PartialEq for DecodeSliceError
§fn eq(&self, other: &DecodeSliceError) -> bool
fn eq(&self, other: &DecodeSliceError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for DecodeSliceError
impl StructuralPartialEq for DecodeSliceError
Auto Trait Implementations§
impl Freeze for DecodeSliceError
impl RefUnwindSafe for DecodeSliceError
impl Send for DecodeSliceError
impl Sync for DecodeSliceError
impl Unpin for DecodeSliceError
impl UnwindSafe for DecodeSliceError
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more