pub enum EncodeIntoSliceError {
EncodeError(EncodeError),
OutputSliceIsTooSmall,
}Expand description
Errors than can occur while encoding into a slice.
Variants§
EncodeError(EncodeError)
An EncodeError occurred.
OutputSliceIsTooSmall
The provided slice is too small.
Trait Implementations§
Source§impl Clone for EncodeIntoSliceError
impl Clone for EncodeIntoSliceError
Source§fn clone(&self) -> EncodeIntoSliceError
fn clone(&self) -> EncodeIntoSliceError
Returns a duplicate 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 EncodeIntoSliceError
impl Debug for EncodeIntoSliceError
Source§impl Display for EncodeIntoSliceError
impl Display for EncodeIntoSliceError
Source§impl Error for EncodeIntoSliceError
impl Error for EncodeIntoSliceError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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()
Source§impl From<EncodeError> for EncodeIntoSliceError
impl From<EncodeError> for EncodeIntoSliceError
Source§fn from(e: EncodeError) -> Self
fn from(e: EncodeError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for EncodeIntoSliceError
impl PartialEq for EncodeIntoSliceError
impl Eq for EncodeIntoSliceError
impl StructuralPartialEq for EncodeIntoSliceError
Auto Trait Implementations§
impl Freeze for EncodeIntoSliceError
impl RefUnwindSafe for EncodeIntoSliceError
impl Send for EncodeIntoSliceError
impl Sync for EncodeIntoSliceError
impl Unpin for EncodeIntoSliceError
impl UnwindSafe for EncodeIntoSliceError
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