Enum uuid::Error [−][src]
pub enum Error { Bytes(BytesError), Parse(ParseError), }
Expand description
A general error that can occur when handling Uuid
s.
Although specialized error types exist in the crate, sometimes where particular error type occurred is hidden until errors need to be handled. This allows to enumerate the errors.
Variants
Bytes(BytesError)
Expand description
An error occurred while handling Uuid
bytes.
See BytesError
Parse(ParseError)
Expand description
An error occurred while parsing a Uuid
string.
Trait Implementations
impl Error for Error
[src]
impl Error for Error
[src]fn description(&self) -> &str
[src]
fn description(&self) -> &str
[src]use the Display impl or to_string()
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]The lower-level source of this error, if any. Read more
impl From<BytesError> for Error
[src]
impl From<BytesError> for Error
[src]fn from(err: BytesError) -> Self
[src]
fn from(err: BytesError) -> Self
[src]Performs the conversion.
impl From<ParseError> for Error
[src]
impl From<ParseError> for Error
[src]fn from(err: ParseError) -> Self
[src]
fn from(err: ParseError) -> Self
[src]Performs the conversion.
impl Ord for Error
[src]
impl Ord for Error
[src]impl PartialOrd<Error> for Error
[src]
impl PartialOrd<Error> for Error
[src]fn partial_cmp(&self, other: &Error) -> Option<Ordering>
[src]
fn partial_cmp(&self, other: &Error) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Error
[src]
impl Eq for Error
[src]
impl StructuralEq for Error
[src]
impl StructuralPartialEq for Error
[src]
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more