Struct ethers::core::k256::elliptic_curve::bigint::NonZero [−][src]
pub struct NonZero<T>(_)
where
T: Integer;
Expand description
Wrapper type for non-zero integers.
Implementations
Decode from big endian bytes.
Decode from little endian bytes.
pub fn from_be_byte_array(
bytes: GenericArray<u8, <T as ArrayEncoding>::ByteSize>
) -> CtOption<NonZero<T>> where
T: ArrayEncoding,
pub fn from_be_byte_array(
bytes: GenericArray<u8, <T as ArrayEncoding>::ByteSize>
) -> CtOption<NonZero<T>> where
T: ArrayEncoding,
Decode a non-zero integer from big endian bytes.
pub fn from_le_byte_array(
bytes: GenericArray<u8, <T as ArrayEncoding>::ByteSize>
) -> CtOption<NonZero<T>> where
T: ArrayEncoding,
pub fn from_le_byte_array(
bytes: GenericArray<u8, <T as ArrayEncoding>::ByteSize>
) -> CtOption<NonZero<T>> where
T: ArrayEncoding,
Decode a non-zero integer from big endian bytes.
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 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
Auto Trait Implementations
impl<T> RefUnwindSafe for NonZero<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for NonZero<T> where
T: UnwindSafe,
Blanket Implementations
pub fn as_slice_of<T>(&self) -> Result<&[T], Error> where
T: FromByteSlice,
pub fn base32_len(&self) -> usize
pub fn base32_len(&self) -> usize
Calculate the base32 serialized length
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
pub fn write_base32<W>(
&self,
writer: &mut W
) -> Result<(), <W as WriteBase32>::Err> where
W: WriteBase32,
Encode as base32 and write it to the supplied writer Implementations shouldn’t allocate. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more