Struct crypto_bigint::NonZero [−][src]
pub struct NonZero<T: Zero>(_);
Expand description
Wrapper type for non-zero integers.
Implementations
Decode from big endian bytes.
Decode from little endian bytes.
This is supported on crate feature generic-array
only.
generic-array
only.Decode a non-zero integer from big endian bytes.
This is supported on crate feature generic-array
only.
generic-array
only.Decode a non-zero integer from big endian bytes.
Create a NonZero<Limb>
from a NonZeroU8
(const-friendly)
Create a NonZero<Limb>
from a NonZeroU16
(const-friendly)
Create a NonZero<Limb>
from a NonZeroU32
(const-friendly)
Create a NonZero<UInt>
from a NonZeroU8
(const-friendly)
Create a NonZero<UInt>
from a NonZeroU16
(const-friendly)
Create a NonZero<UInt>
from a NonZeroU32
(const-friendly)
Create a NonZero<UInt>
from a NonZeroU64
(const-friendly)
Create a NonZero<UInt>
from a NonZeroU128
(const-friendly)
Trait Implementations
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the /=
operation. Read more
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Performs the %=
operation. Read more
Performs the %=
operation. Read more
Performs the %=
operation. Read more
Performs the %=
operation. Read more
Auto Trait Implementations
impl<T> RefUnwindSafe for NonZero<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for NonZero<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more