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§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>
impl Copy for GuidFromStrError
impl Eq for GuidFromStrError
impl StructuralPartialEq for GuidFromStrError
Auto Trait Implementations§
impl Freeze for GuidFromStrError
impl RefUnwindSafe for GuidFromStrError
impl Send for GuidFromStrError
impl Sync for GuidFromStrError
impl Unpin for GuidFromStrError
impl UnwindSafe for GuidFromStrError
Blanket Implementations§
§impl<T> Any for Twhere
T: 'static + ?Sized,
impl<T> Any for Twhere
T: 'static + ?Sized,
§impl<T> Borrow<T> for Twhere
T: ?Sized,
impl<T> Borrow<T> for Twhere
T: ?Sized,
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)