pub(crate) enum ErrorKind {
Char {
character: char,
index: usize,
},
SimpleLength {
len: usize,
},
ByteLength {
len: usize,
},
GroupCount {
count: usize,
},
GroupLength {
group: usize,
len: usize,
index: usize,
},
InvalidUTF8,
Nil,
Other,
}
Variants§
Char
Invalid character in the Uuid
string.
SimpleLength
A simple Uuid
didn’t contain 32 characters.
ByteLength
A byte array didn’t contain 16 bytes
GroupCount
A hyphenated Uuid
didn’t contain 5 groups
GroupLength
A hyphenated Uuid
had a group that wasn’t the right length
InvalidUTF8
The input was not a valid UTF8 string
Nil
The UUID is nil.
Other
Some other error occurred.
Trait Implementations§
impl Eq for ErrorKind
impl StructuralPartialEq for ErrorKind
Auto Trait Implementations§
impl Freeze for ErrorKind
impl RefUnwindSafe for ErrorKind
impl Send for ErrorKind
impl Sync for ErrorKind
impl Unpin for ErrorKind
impl UnwindSafe for ErrorKind
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§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
)