Enum gstd::errors::ConversionError
pub enum ConversionError {
InvalidSliceLength,
InvalidHexString,
InvalidSs58Address,
Ss58Encode,
}
Expand description
The error type returned when conversion fails.
Variants§
InvalidSliceLength
Invalid slice length.
InvalidHexString
Invalid hex string.
InvalidSs58Address
Invalid SS58 address.
Ss58Encode
SS58 encoding failed.
Trait Implementations§
§impl Clone for ConversionError
impl Clone for ConversionError
§fn clone(&self) -> ConversionError
fn clone(&self) -> ConversionError
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 ConversionError
impl Debug for ConversionError
§impl Display for ConversionError
impl Display for ConversionError
source§impl From<ConversionError> for Error
impl From<ConversionError> for Error
source§fn from(err: ConversionError) -> Self
fn from(err: ConversionError) -> Self
Converts to this type from the input type.
§impl PartialEq for ConversionError
impl PartialEq for ConversionError
impl Copy for ConversionError
impl Eq for ConversionError
impl StructuralPartialEq for ConversionError
Auto Trait Implementations§
impl Freeze for ConversionError
impl RefUnwindSafe for ConversionError
impl Send for ConversionError
impl Sync for ConversionError
impl Unpin for ConversionError
impl UnwindSafe for ConversionError
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
)§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