Struct uuid::error::InvalidUuid
source · pub struct InvalidUuid<'a>(pub(crate) &'a [u8]);
Expand description
A string that is guaranteed to fail to parse to a Uuid
.
This type acts as a lightweight error indicator, suggesting
that the string cannot be parsed but offering no error
details. To get details, use InvalidUuid::into_err
.
Tuple Fields§
§0: &'a [u8]
Implementations§
Trait Implementations§
source§impl<'a> Clone for InvalidUuid<'a>
impl<'a> Clone for InvalidUuid<'a>
source§fn clone(&self) -> InvalidUuid<'a>
fn clone(&self) -> InvalidUuid<'a>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'a> Debug for InvalidUuid<'a>
impl<'a> Debug for InvalidUuid<'a>
source§impl<'a> Hash for InvalidUuid<'a>
impl<'a> Hash for InvalidUuid<'a>
source§impl<'a> PartialEq for InvalidUuid<'a>
impl<'a> PartialEq for InvalidUuid<'a>
impl<'a> Eq for InvalidUuid<'a>
impl<'a> StructuralPartialEq for InvalidUuid<'a>
Auto Trait Implementations§
impl<'a> Freeze for InvalidUuid<'a>
impl<'a> RefUnwindSafe for InvalidUuid<'a>
impl<'a> Send for InvalidUuid<'a>
impl<'a> Sync for InvalidUuid<'a>
impl<'a> Unpin for InvalidUuid<'a>
impl<'a> UnwindSafe for InvalidUuid<'a>
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
)