Struct oberon::inner_types::elliptic_curve::bigint::NonZero
pub struct NonZero<T>(_)
where
T: Zero;
Expand description
Wrapper type for non-zero integers.
Implementations§
§impl<T> NonZero<T>where
T: Encoding + Zero,
impl<T> NonZero<T>where T: Encoding + Zero,
pub fn from_be_bytes(bytes: <T as Encoding>::Repr) -> CtOption<NonZero<T>>
pub fn from_be_bytes(bytes: <T as Encoding>::Repr) -> CtOption<NonZero<T>>
Decode from big endian bytes.
pub fn from_le_bytes(bytes: <T as Encoding>::Repr) -> CtOption<NonZero<T>>
pub fn from_le_bytes(bytes: <T as Encoding>::Repr) -> CtOption<NonZero<T>>
Decode from little endian bytes.
§impl<T> NonZero<T>where
T: ArrayEncoding + Zero,
impl<T> NonZero<T>where T: ArrayEncoding + Zero,
pub fn from_be_byte_array(
bytes: GenericArray<u8, <T as ArrayEncoding>::ByteSize>
) -> CtOption<NonZero<T>>
pub fn from_be_byte_array( bytes: GenericArray<u8, <T as ArrayEncoding>::ByteSize> ) -> CtOption<NonZero<T>>
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>>
pub fn from_le_byte_array( bytes: GenericArray<u8, <T as ArrayEncoding>::ByteSize> ) -> CtOption<NonZero<T>>
Decode a non-zero integer from big endian bytes.
§impl NonZero<Limb>
impl NonZero<Limb>
pub const fn from_u8(n: NonZeroU8) -> NonZero<Limb>
pub const fn from_u8(n: NonZeroU8) -> NonZero<Limb>
Create a NonZero<Limb>
from a NonZeroU8
(const-friendly)
pub const fn from_u16(n: NonZeroU16) -> NonZero<Limb>
pub const fn from_u16(n: NonZeroU16) -> NonZero<Limb>
Create a NonZero<Limb>
from a NonZeroU16
(const-friendly)
pub const fn from_u32(n: NonZeroU32) -> NonZero<Limb>
pub const fn from_u32(n: NonZeroU32) -> NonZero<Limb>
Create a NonZero<Limb>
from a NonZeroU32
(const-friendly)
pub const fn from_u64(n: NonZeroU64) -> NonZero<Limb>
pub const fn from_u64(n: NonZeroU64) -> NonZero<Limb>
Create a NonZero<Limb>
from a NonZeroU64
(const-friendly)
§impl<const LIMBS: usize> NonZero<Uint<LIMBS>>
impl<const LIMBS: usize> NonZero<Uint<LIMBS>>
pub const fn from_uint(n: Uint<LIMBS>) -> NonZero<Uint<LIMBS>>
pub const fn from_uint(n: Uint<LIMBS>) -> NonZero<Uint<LIMBS>>
Create a NonZero<Uint>
from a Uint
(const-friendly)
pub const fn from_u8(n: NonZeroU8) -> NonZero<Uint<LIMBS>>
pub const fn from_u8(n: NonZeroU8) -> NonZero<Uint<LIMBS>>
Create a NonZero<Uint>
from a NonZeroU8
(const-friendly)
pub const fn from_u16(n: NonZeroU16) -> NonZero<Uint<LIMBS>>
pub const fn from_u16(n: NonZeroU16) -> NonZero<Uint<LIMBS>>
Create a NonZero<Uint>
from a NonZeroU16
(const-friendly)
pub const fn from_u32(n: NonZeroU32) -> NonZero<Uint<LIMBS>>
pub const fn from_u32(n: NonZeroU32) -> NonZero<Uint<LIMBS>>
Create a NonZero<Uint>
from a NonZeroU32
(const-friendly)
pub const fn from_u64(n: NonZeroU64) -> NonZero<Uint<LIMBS>>
pub const fn from_u64(n: NonZeroU64) -> NonZero<Uint<LIMBS>>
Create a NonZero<Uint>
from a NonZeroU64
(const-friendly)
pub const fn from_u128(n: NonZeroU128) -> NonZero<Uint<LIMBS>>
pub const fn from_u128(n: NonZeroU128) -> NonZero<Uint<LIMBS>>
Create a NonZero<Uint>
from a NonZeroU128
(const-friendly)
Trait Implementations§
§impl<T> ConditionallySelectable for NonZero<T>where
T: ConditionallySelectable + Zero,
impl<T> ConditionallySelectable for NonZero<T>where T: ConditionallySelectable + Zero,
§impl<T> ConstantTimeEq for NonZero<T>where
T: Zero,
impl<T> ConstantTimeEq for NonZero<T>where T: Zero,
§impl<const LIMBS: usize> DivAssign<&NonZero<Limb>> for Uint<LIMBS>
impl<const LIMBS: usize> DivAssign<&NonZero<Limb>> for Uint<LIMBS>
§fn div_assign(&mut self, rhs: &NonZero<Limb>)
fn div_assign(&mut self, rhs: &NonZero<Limb>)
/=
operation. Read more§impl<const LIMBS: usize> DivAssign<&NonZero<Limb>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> DivAssign<&NonZero<Limb>> for Wrapping<Uint<LIMBS>>
§fn div_assign(&mut self, rhs: &NonZero<Limb>)
fn div_assign(&mut self, rhs: &NonZero<Limb>)
/=
operation. Read more§impl<const LIMBS: usize> DivAssign<&NonZero<Uint<LIMBS>>> for Uint<LIMBS>
impl<const LIMBS: usize> DivAssign<&NonZero<Uint<LIMBS>>> for Uint<LIMBS>
§fn div_assign(&mut self, rhs: &NonZero<Uint<LIMBS>>)
fn div_assign(&mut self, rhs: &NonZero<Uint<LIMBS>>)
/=
operation. Read more§impl<const LIMBS: usize> DivAssign<&NonZero<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> DivAssign<&NonZero<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
§fn div_assign(&mut self, rhs: &NonZero<Uint<LIMBS>>)
fn div_assign(&mut self, rhs: &NonZero<Uint<LIMBS>>)
/=
operation. Read more§impl<const LIMBS: usize> DivAssign<NonZero<Limb>> for Uint<LIMBS>
impl<const LIMBS: usize> DivAssign<NonZero<Limb>> for Uint<LIMBS>
§fn div_assign(&mut self, rhs: NonZero<Limb>)
fn div_assign(&mut self, rhs: NonZero<Limb>)
/=
operation. Read more§impl<const LIMBS: usize> DivAssign<NonZero<Limb>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> DivAssign<NonZero<Limb>> for Wrapping<Uint<LIMBS>>
§fn div_assign(&mut self, rhs: NonZero<Limb>)
fn div_assign(&mut self, rhs: NonZero<Limb>)
/=
operation. Read more§impl<const LIMBS: usize> DivAssign<NonZero<Uint<LIMBS>>> for Uint<LIMBS>
impl<const LIMBS: usize> DivAssign<NonZero<Uint<LIMBS>>> for Uint<LIMBS>
§fn div_assign(&mut self, rhs: NonZero<Uint<LIMBS>>)
fn div_assign(&mut self, rhs: NonZero<Uint<LIMBS>>)
/=
operation. Read more§impl<const LIMBS: usize> DivAssign<NonZero<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> DivAssign<NonZero<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
§fn div_assign(&mut self, rhs: NonZero<Uint<LIMBS>>)
fn div_assign(&mut self, rhs: NonZero<Uint<LIMBS>>)
/=
operation. Read more§impl<const LIMBS: usize> From<NonZeroU128> for NonZero<Uint<LIMBS>>
impl<const LIMBS: usize> From<NonZeroU128> for NonZero<Uint<LIMBS>>
§fn from(integer: NonZeroU128) -> NonZero<Uint<LIMBS>>
fn from(integer: NonZeroU128) -> NonZero<Uint<LIMBS>>
§impl From<NonZeroU16> for NonZero<Limb>
impl From<NonZeroU16> for NonZero<Limb>
§fn from(integer: NonZeroU16) -> NonZero<Limb>
fn from(integer: NonZeroU16) -> NonZero<Limb>
§impl<const LIMBS: usize> From<NonZeroU16> for NonZero<Uint<LIMBS>>
impl<const LIMBS: usize> From<NonZeroU16> for NonZero<Uint<LIMBS>>
§fn from(integer: NonZeroU16) -> NonZero<Uint<LIMBS>>
fn from(integer: NonZeroU16) -> NonZero<Uint<LIMBS>>
§impl From<NonZeroU32> for NonZero<Limb>
impl From<NonZeroU32> for NonZero<Limb>
§fn from(integer: NonZeroU32) -> NonZero<Limb>
fn from(integer: NonZeroU32) -> NonZero<Limb>
§impl<const LIMBS: usize> From<NonZeroU32> for NonZero<Uint<LIMBS>>
impl<const LIMBS: usize> From<NonZeroU32> for NonZero<Uint<LIMBS>>
§fn from(integer: NonZeroU32) -> NonZero<Uint<LIMBS>>
fn from(integer: NonZeroU32) -> NonZero<Uint<LIMBS>>
§impl From<NonZeroU64> for NonZero<Limb>
impl From<NonZeroU64> for NonZero<Limb>
§fn from(integer: NonZeroU64) -> NonZero<Limb>
fn from(integer: NonZeroU64) -> NonZero<Limb>
§impl<const LIMBS: usize> From<NonZeroU64> for NonZero<Uint<LIMBS>>
impl<const LIMBS: usize> From<NonZeroU64> for NonZero<Uint<LIMBS>>
§fn from(integer: NonZeroU64) -> NonZero<Uint<LIMBS>>
fn from(integer: NonZeroU64) -> NonZero<Uint<LIMBS>>
§impl<MOD, const LIMBS: usize> Invert for NonZero<Residue<MOD, LIMBS>>where
MOD: ResidueParams<LIMBS>,
impl<MOD, const LIMBS: usize> Invert for NonZero<Residue<MOD, LIMBS>>where MOD: ResidueParams<LIMBS>,
§impl<T> Ord for NonZero<T>where
T: Ord + Zero,
impl<T> Ord for NonZero<T>where T: Ord + Zero,
§impl<T> PartialEq<NonZero<T>> for NonZero<T>where
T: PartialEq<T> + Zero,
impl<T> PartialEq<NonZero<T>> for NonZero<T>where T: PartialEq<T> + Zero,
§impl<T> PartialOrd<NonZero<T>> for NonZero<T>where
T: PartialOrd<T> + Zero,
impl<T> PartialOrd<NonZero<T>> for NonZero<T>where T: PartialOrd<T> + Zero,
§fn partial_cmp(&self, other: &NonZero<T>) -> Option<Ordering>
fn partial_cmp(&self, other: &NonZero<T>) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more§impl<T> Random for NonZero<T>where
T: Random + Zero,
impl<T> Random for NonZero<T>where T: Random + Zero,
§fn random(rng: &mut impl CryptoRngCore) -> NonZero<T>
fn random(rng: &mut impl CryptoRngCore) -> NonZero<T>
Generate a random NonZero<T>
.
§impl<const LIMBS: usize> RemAssign<&NonZero<Limb>> for Uint<LIMBS>
impl<const LIMBS: usize> RemAssign<&NonZero<Limb>> for Uint<LIMBS>
§fn rem_assign(&mut self, rhs: &NonZero<Limb>)
fn rem_assign(&mut self, rhs: &NonZero<Limb>)
%=
operation. Read more§impl<const LIMBS: usize> RemAssign<&NonZero<Limb>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> RemAssign<&NonZero<Limb>> for Wrapping<Uint<LIMBS>>
§fn rem_assign(&mut self, rhs: &NonZero<Limb>)
fn rem_assign(&mut self, rhs: &NonZero<Limb>)
%=
operation. Read more§impl<const LIMBS: usize> RemAssign<&NonZero<Uint<LIMBS>>> for Uint<LIMBS>
impl<const LIMBS: usize> RemAssign<&NonZero<Uint<LIMBS>>> for Uint<LIMBS>
§fn rem_assign(&mut self, rhs: &NonZero<Uint<LIMBS>>)
fn rem_assign(&mut self, rhs: &NonZero<Uint<LIMBS>>)
%=
operation. Read more§impl<const LIMBS: usize> RemAssign<&NonZero<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> RemAssign<&NonZero<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
§fn rem_assign(&mut self, rhs: &NonZero<Uint<LIMBS>>)
fn rem_assign(&mut self, rhs: &NonZero<Uint<LIMBS>>)
%=
operation. Read more§impl<const LIMBS: usize> RemAssign<NonZero<Limb>> for Uint<LIMBS>
impl<const LIMBS: usize> RemAssign<NonZero<Limb>> for Uint<LIMBS>
§fn rem_assign(&mut self, rhs: NonZero<Limb>)
fn rem_assign(&mut self, rhs: NonZero<Limb>)
%=
operation. Read more§impl<const LIMBS: usize> RemAssign<NonZero<Limb>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> RemAssign<NonZero<Limb>> for Wrapping<Uint<LIMBS>>
§fn rem_assign(&mut self, rhs: NonZero<Limb>)
fn rem_assign(&mut self, rhs: NonZero<Limb>)
%=
operation. Read more§impl<const LIMBS: usize> RemAssign<NonZero<Uint<LIMBS>>> for Uint<LIMBS>
impl<const LIMBS: usize> RemAssign<NonZero<Uint<LIMBS>>> for Uint<LIMBS>
§fn rem_assign(&mut self, rhs: NonZero<Uint<LIMBS>>)
fn rem_assign(&mut self, rhs: NonZero<Uint<LIMBS>>)
%=
operation. Read more§impl<const LIMBS: usize> RemAssign<NonZero<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
impl<const LIMBS: usize> RemAssign<NonZero<Uint<LIMBS>>> for Wrapping<Uint<LIMBS>>
§fn rem_assign(&mut self, rhs: NonZero<Uint<LIMBS>>)
fn rem_assign(&mut self, rhs: NonZero<Uint<LIMBS>>)
%=
operation. Read moreimpl<T> Copy for NonZero<T>where T: Copy + Zero,
impl<T> Eq for NonZero<T>where T: Eq + Zero,
impl<T> StructuralEq for NonZero<T>where T: Zero,
impl<T> StructuralPartialEq for NonZero<T>where T: Zero,
Auto Trait Implementations§
impl<T> RefUnwindSafe for NonZero<T>where T: RefUnwindSafe,
impl<T> Send for NonZero<T>where T: Send,
impl<T> Sync for NonZero<T>where T: Sync,
impl<T> Unpin for NonZero<T>where T: Unpin,
impl<T> UnwindSafe for NonZero<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
§impl<T> Conv for T
impl<T> Conv for T
§impl<T> FmtForward for T
impl<T> FmtForward for T
§fn fmt_binary(self) -> FmtBinary<Self>where
Self: Binary,
fn fmt_binary(self) -> FmtBinary<Self>where Self: Binary,
self
to use its Binary
implementation when Debug
-formatted.§fn fmt_display(self) -> FmtDisplay<Self>where
Self: Display,
fn fmt_display(self) -> FmtDisplay<Self>where Self: Display,
self
to use its Display
implementation when
Debug
-formatted.§fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where Self: LowerExp,
self
to use its LowerExp
implementation when
Debug
-formatted.§fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where Self: LowerHex,
self
to use its LowerHex
implementation when
Debug
-formatted.§fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where Self: Octal,
self
to use its Octal
implementation when Debug
-formatted.§fn fmt_pointer(self) -> FmtPointer<Self>where
Self: Pointer,
fn fmt_pointer(self) -> FmtPointer<Self>where Self: Pointer,
self
to use its Pointer
implementation when
Debug
-formatted.§fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where Self: UpperExp,
self
to use its UpperExp
implementation when
Debug
-formatted.§fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where Self: UpperHex,
self
to use its UpperHex
implementation when
Debug
-formatted.§fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where &'a Self: for<'a> IntoIterator,
§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere T: ?Sized,
§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere Self: Sized,
§fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref<'a, R>(&'a self, func: impl FnOnce(&'a Self) -> R) -> Rwhere R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere
R: 'a,
fn pipe_ref_mut<'a, R>(&'a mut self, func: impl FnOnce(&'a mut Self) -> R) -> Rwhere R: 'a,
self
and passes that borrow into the pipe function. Read more§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere
Self: Borrow<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> Rwhere Self: Borrow<B>, B: 'a + ?Sized, R: 'a,
§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R
) -> Rwhere
Self: BorrowMut<B>,
B: 'a + ?Sized,
R: 'a,
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R ) -> Rwhere Self: BorrowMut<B>, B: 'a + ?Sized, R: 'a,
§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere
Self: AsRef<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> Rwhere Self: AsRef<U>, U: 'a + ?Sized, R: 'a,
self
, then passes self.as_ref()
into the pipe function.§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere
Self: AsMut<U>,
U: 'a + ?Sized,
R: 'a,
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> Rwhere Self: AsMut<U>, U: 'a + ?Sized, R: 'a,
self
, then passes self.as_mut()
into the pipe
function.§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,
Borrow<B>
of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
BorrowMut<B>
of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,
AsRef<R>
view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,
AsMut<R>
view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere
Self: Deref<Target = T>,
T: ?Sized,
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Selfwhere Self: Deref<Target = T>, T: ?Sized,
Deref::Target
of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere
Self: DerefMut<Target = T> + Deref,
T: ?Sized,
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Selfwhere Self: DerefMut<Target = T> + Deref, T: ?Sized,
Deref::Target
of a value. Read more§fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
.tap()
only in debug builds, and is erased in release builds.§fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
fn tap_mut_dbg(self, func: impl FnOnce(&mut Self)) -> Self
.tap_mut()
only in debug builds, and is erased in release
builds.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere
Self: Borrow<B>,
B: ?Sized,
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Selfwhere Self: Borrow<B>, B: ?Sized,
.tap_borrow()
only in debug builds, and is erased in release
builds.§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere
Self: BorrowMut<B>,
B: ?Sized,
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Selfwhere Self: BorrowMut<B>, B: ?Sized,
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere
Self: AsRef<R>,
R: ?Sized,
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Selfwhere Self: AsRef<R>, R: ?Sized,
.tap_ref()
only in debug builds, and is erased in release
builds.§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere
Self: AsMut<R>,
R: ?Sized,
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Selfwhere Self: AsMut<R>, R: ?Sized,
.tap_ref_mut()
only in debug builds, and is erased in release
builds.source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
self
into the result. Upper case
letters are used (e.g. F9B4CA
)