Enum bva::ConvertionError
source · pub enum ConvertionError {
NotEnoughCapacity,
InvalidFormat(usize),
}Expand description
An enumeration representing errors which can arise from convertion operation (from_hex, from_binary, from_bytes).
Variants§
NotEnoughCapacity
The underlying BitVector type did not have enough capacity to perform the operation.
InvalidFormat(usize)
The source data format is invalid at the specified offset.
Trait Implementations§
source§impl Clone for ConvertionError
impl Clone for ConvertionError
source§fn clone(&self) -> ConvertionError
fn clone(&self) -> ConvertionError
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 ConvertionError
impl Debug for ConvertionError
source§impl Display for ConvertionError
impl Display for ConvertionError
source§impl Error for ConvertionError
impl Error for ConvertionError
1.30.0 · source§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()
source§impl PartialEq for ConvertionError
impl PartialEq for ConvertionError
source§fn eq(&self, other: &ConvertionError) -> bool
fn eq(&self, other: &ConvertionError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for ConvertionError
impl Eq for ConvertionError
impl StructuralPartialEq for ConvertionError
Auto Trait Implementations§
impl Freeze for ConvertionError
impl RefUnwindSafe for ConvertionError
impl Send for ConvertionError
impl Sync for ConvertionError
impl Unpin for ConvertionError
impl UnwindSafe for ConvertionError
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: 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)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)