Enum uguid::GuidFromStrError
source · pub enum GuidFromStrError {
Length,
Separator(u8),
Hex(u8),
}
Expand description
Error type for Guid::try_parse
and Guid::from_str
.
If the std
feature is enabled, this type implements the Error
trait.
Variants§
Length
Input has the wrong length, expected 36 bytes.
Separator(u8)
Input is missing a separator (-
) at this byte index.
Hex(u8)
Input contains invalid ASCII hex at this byte index.
Trait Implementations§
source§impl Clone for GuidFromStrError
impl Clone for GuidFromStrError
source§fn clone(&self) -> GuidFromStrError
fn clone(&self) -> GuidFromStrError
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 moresource§impl Debug for GuidFromStrError
impl Debug for GuidFromStrError
source§impl Default for GuidFromStrError
impl Default for GuidFromStrError
source§impl Display for GuidFromStrError
impl Display for GuidFromStrError
source§impl Error for GuidFromStrError
Available on crate feature std
only.
impl Error for GuidFromStrError
Available on crate feature
std
only.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 Hash for GuidFromStrError
impl Hash for GuidFromStrError
source§impl Ord for GuidFromStrError
impl Ord for GuidFromStrError
source§fn cmp(&self, other: &GuidFromStrError) -> Ordering
fn cmp(&self, other: &GuidFromStrError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for GuidFromStrError
impl PartialEq for GuidFromStrError
source§fn eq(&self, other: &GuidFromStrError) -> bool
fn eq(&self, other: &GuidFromStrError) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for GuidFromStrError
impl PartialOrd for GuidFromStrError
source§fn partial_cmp(&self, other: &GuidFromStrError) -> Option<Ordering>
fn partial_cmp(&self, other: &GuidFromStrError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for GuidFromStrError
impl Eq for GuidFromStrError
impl StructuralEq for GuidFromStrError
impl StructuralPartialEq for GuidFromStrError
Auto Trait Implementations§
impl RefUnwindSafe for GuidFromStrError
impl Send for GuidFromStrError
impl Sync for GuidFromStrError
impl Unpin for GuidFromStrError
impl UnwindSafe for GuidFromStrError
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