pub enum GuidParseError {
WrongLength {
len: usize,
},
MissingBraces,
MissingHyphen {
at: usize,
},
BadHex {
at: usize,
byte: u8,
},
}Expand description
Error returned by Guid::parse.
Variants§
WrongLength
String length is not exactly 38 bytes.
MissingBraces
Missing the leading { or trailing }.
MissingHyphen
Missing a - separator at one of the standard positions.
BadHex
Encountered a non-hex byte where a hex digit was expected.
Trait Implementations§
Source§impl Clone for GuidParseError
impl Clone for GuidParseError
Source§fn clone(&self) -> GuidParseError
fn clone(&self) -> GuidParseError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GuidParseError
impl Debug for GuidParseError
Source§impl Display for GuidParseError
impl Display for GuidParseError
Source§impl Error for GuidParseError
impl Error for GuidParseError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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 PartialEq for GuidParseError
impl PartialEq for GuidParseError
Source§fn eq(&self, other: &GuidParseError) -> bool
fn eq(&self, other: &GuidParseError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for GuidParseError
impl StructuralPartialEq for GuidParseError
Auto Trait Implementations§
impl Freeze for GuidParseError
impl RefUnwindSafe for GuidParseError
impl Send for GuidParseError
impl Sync for GuidParseError
impl Unpin for GuidParseError
impl UnsafeUnpin for GuidParseError
impl UnwindSafe for GuidParseError
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