Struct uuid::BytesError [−][src]
pub struct BytesError { /* fields omitted */ }
The error that can occur when creating a Uuid
.
Methods
impl BytesError
[src]
impl BytesError
pub const fn expected(&self) -> usize
[src]
pub const fn expected(&self) -> usize
The expected number of bytes.
pub const fn found(&self) -> usize
[src]
pub const fn found(&self) -> usize
The number of bytes found.
pub const fn new(expected: usize, found: usize) -> Self
[src]
pub const fn new(expected: usize, found: usize) -> Self
Create a new UuidError
.
Trait Implementations
impl Display for BytesError
[src]
impl Display for BytesError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Error for BytesError
[src]
impl Error for BytesError
fn description(&self) -> &str
[src]
fn description(&self) -> &str
This method is soft-deprecated. Read more
fn cause(&self) -> Option<&Error>
1.0.0[src]
fn cause(&self) -> Option<&Error>
The lower-level cause of this error, if any. Read more
impl Clone for BytesError
[src]
impl Clone for BytesError
fn clone(&self) -> BytesError
[src]
fn clone(&self) -> BytesError
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl Copy for BytesError
[src]
impl Copy for BytesError
impl Debug for BytesError
[src]
impl Debug for BytesError
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Eq for BytesError
[src]
impl Eq for BytesError
impl Hash for BytesError
[src]
impl Hash for BytesError
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
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]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl Ord for BytesError
[src]
impl Ord for BytesError
fn cmp(&self, other: &BytesError) -> Ordering
[src]
fn cmp(&self, other: &BytesError) -> Ordering
This method returns an Ordering
between self
and other
. Read more
fn max(self, other: Self) -> Self
1.21.0[src]
fn max(self, other: Self) -> Self
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self
1.21.0[src]
fn min(self, other: Self) -> Self
Compares and returns the minimum of two values. Read more
impl PartialEq for BytesError
[src]
impl PartialEq for BytesError
fn eq(&self, other: &BytesError) -> bool
[src]
fn eq(&self, other: &BytesError) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &BytesError) -> bool
[src]
fn ne(&self, other: &BytesError) -> bool
This method tests for !=
.
impl PartialOrd for BytesError
[src]
impl PartialOrd for BytesError
fn partial_cmp(&self, other: &BytesError) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &BytesError) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
fn lt(&self, other: &BytesError) -> bool
[src]
fn lt(&self, other: &BytesError) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
fn le(&self, other: &BytesError) -> bool
[src]
fn le(&self, other: &BytesError) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
fn gt(&self, other: &BytesError) -> bool
[src]
fn gt(&self, other: &BytesError) -> bool
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
fn ge(&self, other: &BytesError) -> bool
[src]
fn ge(&self, other: &BytesError) -> bool
This method tests greater than or equal to (for self
and other
) and is used by the >=
operator. Read more
Auto Trait Implementations
impl Send for BytesError
impl Send for BytesError
impl Sync for BytesError
impl Sync for BytesError