Enum nibble::base::ParseNibbleError
[−]
[src]
pub enum ParseNibbleError { Empty, TooLarge, BadFormat, }
An error that occurs when parsing a nibble.
Variants
Empty
Given string was empty.
TooLarge
Given number was larger than a nibble, or larger than the slice could hold.
BadFormat
Given string was not a valid number.
Methods
impl ParseNibbleError
[src]
fn description(&self) -> &'static str
[src]
User-friendly description of the error.
Trait Implementations
impl Clone for ParseNibbleError
[src]
fn clone(&self) -> ParseNibbleError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ParseNibbleError
[src]
impl Debug for ParseNibbleError
[src]
impl Eq for ParseNibbleError
[src]
impl Hash for ParseNibbleError
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl PartialEq for ParseNibbleError
[src]
fn eq(&self, __arg_0: &ParseNibbleError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Display for ParseNibbleError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more