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§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 Hash for GuidFromStrError
impl Hash for GuidFromStrError
source§impl Ord for GuidFromStrError
impl Ord for GuidFromStrError
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 ==
.