pub type NonZeroUint = NonZero<Uint>;
Available on crate feature
bigint
only.Expand description
Non-zero Uint
.
Aliased Type§
pub struct NonZeroUint(/* private fields */);
Implementations
Trait Implementations§
Source§impl TryFrom<&Mpint> for NonZeroUint
Available on crate feature alloc
only.
impl TryFrom<&Mpint> for NonZeroUint
Available on crate feature
alloc
only.Source§impl TryFrom<Mpint> for NonZeroUint
Available on crate feature alloc
only.
impl TryFrom<Mpint> for NonZeroUint
Available on crate feature
alloc
only.Source§impl<T> ConditionallySelectable for NonZero<T>where
T: ConditionallySelectable,
impl<T> ConditionallySelectable for NonZero<T>where
T: ConditionallySelectable,
Source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
Source§fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
Conditionally swap
self
and other
if choice == 1
; otherwise,
reassign both unto themselves. Read moreSource§impl<T> ConstantTimeEq for NonZero<T>where
T: ConstantTimeEq,
impl<T> ConstantTimeEq for NonZero<T>where
T: ConstantTimeEq,
Source§impl<T> Ord for NonZero<T>where
T: Ord,
impl<T> Ord for NonZero<T>where
T: Ord,
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<T> PartialOrd for NonZero<T>where
T: PartialOrd,
impl<T> PartialOrd for NonZero<T>where
T: PartialOrd,
Source§impl Resize for NonZero<BoxedUint>
impl Resize for NonZero<BoxedUint>
Source§fn resize_unchecked(
self,
at_least_bits_precision: u32,
) -> <NonZero<BoxedUint> as Resize>::Output
fn resize_unchecked( self, at_least_bits_precision: u32, ) -> <NonZero<BoxedUint> as Resize>::Output
Resizes to the minimum storage that fits
at_least_bits_precision
without checking if the bit size of self
is larger than at_least_bits_precision
. Read more