pub struct NonZeroLiteral<T: IntegerLiteral>(pub T);
Expand description
A representation of a non-zero literal. Used by the nonzero!
macro.
This struct has no use outside of this macro (even though it can be constructed by anyone).
It needs to exist to support the use of the nonzero!
macro in const expressions.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
Converts the wrapped value to its non-zero equivalent.
The wrapped value must be non-zero.
impl<T> Any for T where
T: 'static + ?Sized,
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
impl<T, U> Into<U> for T where
U: From<T>,
The type returned in the event of a conversion error.
The type returned in the event of a conversion error.