Struct beetle_nonzero::NonZeroUnchecked
source · pub struct NonZeroUnchecked<T: Zero> {
pub value: T,
}Expand description
Represents a value that might be unequal to zero.
Only use this instead of NonZero if you are sure that value is NonZero,
and you need the extra performance
Fields§
§value: TThe non-zero value
Implementations§
Auto Trait Implementations§
impl<T> RefUnwindSafe for NonZeroUnchecked<T>where T: RefUnwindSafe,
impl<T> Send for NonZeroUnchecked<T>where T: Send,
impl<T> Sync for NonZeroUnchecked<T>where T: Sync,
impl<T> Unpin for NonZeroUnchecked<T>where T: Unpin,
impl<T> UnwindSafe for NonZeroUnchecked<T>where T: UnwindSafe,
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