Enum tari_utilities::byte_array::ByteArrayError
source · pub enum ByteArrayError {
ConversionError(String),
IncorrectLength,
}
Expand description
Errors for ByteArray trait.
Variants§
ConversionError(String)
An array can’t be parsed.
IncorrectLength
The lenght doesn’t fit to the array.
Trait Implementations§
source§impl Debug for ByteArrayError
impl Debug for ByteArrayError
source§impl Display for ByteArrayError
impl Display for ByteArrayError
source§impl Error for ByteArrayError
impl Error for ByteArrayError
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 From<ByteArrayError> for Base58Error
impl From<ByteArrayError> for Base58Error
source§fn from(source: ByteArrayError) -> Self
fn from(source: ByteArrayError) -> Self
Converts to this type from the input type.
source§impl PartialEq<ByteArrayError> for ByteArrayError
impl PartialEq<ByteArrayError> for ByteArrayError
source§fn eq(&self, other: &ByteArrayError) -> bool
fn eq(&self, other: &ByteArrayError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.