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,
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
Other
Some other error occurred.
Trait Implementations§
source§impl PartialEq for ErrorKind
impl PartialEq for ErrorKind
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