pub enum VerRes {
Ok(usize),
ZeroLen,
Unknown,
}
Expand description
Versatile result enumeration.
Used by various methods in versatile way.
Variants§
Implementations§
Source§impl VerRes
impl VerRes
Sourcepub const fn unwrap(&self) -> usize
pub const fn unwrap(&self) -> usize
Returns usize
of VerRes::Ok(usize)
or panics if not that variant.
Sourcepub const unsafe fn unwrap_unchecked(&self) -> usize
pub const unsafe fn unwrap_unchecked(&self) -> usize
Returns usize
of VerRes::Ok(usize)
and does not panic if not that variant (UB).
Check with std::hint::unreachable_unchecked
for more information.
Trait Implementations§
impl Eq for VerRes
impl StructuralPartialEq for VerRes
Auto Trait Implementations§
impl Freeze for VerRes
impl RefUnwindSafe for VerRes
impl Send for VerRes
impl Sync for VerRes
impl Unpin for VerRes
impl UnwindSafe for VerRes
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