#[repr(transparent)]pub struct MontScalar<T: MontConfig<4>>(pub Fp256<MontBackend<T, 4>>);
Expand description
A wrapper struct around a Fp256<MontBackend<T, 4>>
that can easily implement the Scalar
trait.
Using the Scalar
trait rather than this type is encouraged to allow for easier switching of the underlying field.
Tuple Fields§
§0: Fp256<MontBackend<T, 4>>
Implementations§
Source§impl<T: MontConfig<4>> MontScalar<T>
impl<T: MontConfig<4>> MontScalar<T>
Sourcepub fn from_bigint(vals: [u64; 4]) -> Self
pub fn from_bigint(vals: [u64; 4]) -> Self
Create a new MontScalar<T>
from a [u64, 4]
. The array is expected to be in non-montgomery form.
§Panics
This method will panic if the provided [u64; 4]
cannot be converted into a valid BigInt
due to an overflow or invalid input. The method unwraps the result of Fp::from_bigint
, which will panic if the BigInt
does not represent a valid field element (“Invalid input” refers to an integer that is outside the valid range [0,p-1] for the prime field or cannot be represented as a canonical field element. It can also occur due to overflow or issues in the conversion process.).
Sourcepub fn from_le_bytes_mod_order(bytes: &[u8]) -> Self
pub fn from_le_bytes_mod_order(bytes: &[u8]) -> Self
Create a new MontScalar<T>
from a [u8]
modulus the field order. The array is expected to be in non-montgomery form.
Sourcepub fn to_bytes_le(&self) -> Vec<u8> ⓘ
pub fn to_bytes_le(&self) -> Vec<u8> ⓘ
Create a Vec<u8>
from a MontScalar<T>
. The array will be in non-montgomery form.
Trait Implementations§
Source§impl<T: MontConfig<4>> Add for MontScalar<T>
impl<T: MontConfig<4>> Add for MontScalar<T>
Source§impl<T: MontConfig<4>> AddAssign for MontScalar<T>
impl<T: MontConfig<4>> AddAssign for MontScalar<T>
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+=
operation. Read moreSource§impl<T: MontConfig<4>> CanonicalDeserialize for MontScalar<T>
impl<T: MontConfig<4>> CanonicalDeserialize for MontScalar<T>
Source§fn deserialize_with_mode<R: Read>(
reader: R,
compress: Compress,
validate: Validate,
) -> Result<Self, SerializationError>
fn deserialize_with_mode<R: Read>( reader: R, compress: Compress, validate: Validate, ) -> Result<Self, SerializationError>
fn deserialize_compressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_compressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed<R>(reader: R) -> Result<Self, SerializationError>where
R: Read,
fn deserialize_uncompressed_unchecked<R>(
reader: R,
) -> Result<Self, SerializationError>where
R: Read,
Source§impl<T: MontConfig<4>> CanonicalSerialize for MontScalar<T>
impl<T: MontConfig<4>> CanonicalSerialize for MontScalar<T>
Source§fn serialize_with_mode<W: Write>(
&self,
writer: W,
compress: Compress,
) -> Result<(), SerializationError>
fn serialize_with_mode<W: Write>( &self, writer: W, compress: Compress, ) -> Result<(), SerializationError>
fn serialized_size(&self, compress: Compress) -> usize
fn serialize_compressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn compressed_size(&self) -> usize
fn serialize_uncompressed<W>(&self, writer: W) -> Result<(), SerializationError>where
W: Write,
fn uncompressed_size(&self) -> usize
Source§impl<T: MontConfig<4>> Clone for MontScalar<T>
impl<T: MontConfig<4>> Clone for MontScalar<T>
Source§impl<T: MontConfig<4>> Debug for MontScalar<T>
impl<T: MontConfig<4>> Debug for MontScalar<T>
Source§impl<T: MontConfig<4>> Default for MontScalar<T>
impl<T: MontConfig<4>> Default for MontScalar<T>
Source§impl<'de, T: MontConfig<4>> Deserialize<'de> for MontScalar<T>
impl<'de, T: MontConfig<4>> Deserialize<'de> for MontScalar<T>
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Source§impl<T: MontConfig<4>> Display for MontScalar<T>
impl<T: MontConfig<4>> Display for MontScalar<T>
Source§impl<T: MontConfig<4>> From<&[u8]> for MontScalar<T>
Implement From<&[u8]>
for MontScalar
impl<T: MontConfig<4>> From<&[u8]> for MontScalar<T>
Implement From<&[u8]>
for MontScalar
Source§impl From<&MontScalar<FrConfig>> for Scalar
impl From<&MontScalar<FrConfig>> for Scalar
Source§fn from(value: &Curve25519Scalar) -> Self
fn from(value: &Curve25519Scalar) -> Self
§Panics
This method will panic if the byte array is not of the expected length (32 bytes) or if it cannot be converted to a valid canonical scalar. However, under normal conditions, valid Curve25519Scalar
values should always satisfy these requirements.
Source§impl<T: MontConfig<4>> From<&MontScalar<T>> for [u64; 4]
impl<T: MontConfig<4>> From<&MontScalar<T>> for [u64; 4]
Source§fn from(value: &MontScalar<T>) -> Self
fn from(value: &MontScalar<T>) -> Self
Source§impl<F: MontConfig<4>, T> From<&T> for MontScalar<F>
impl<F: MontConfig<4>, T> From<&T> for MontScalar<F>
Source§impl<T: MontConfig<4>> From<&str> for MontScalar<T>
impl<T: MontConfig<4>> From<&str> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<[u64; 4]> for MontScalar<T>
impl<T: MontConfig<4>> From<[u64; 4]> for MontScalar<T>
Source§impl From<MontScalar<FrConfig>> for Scalar
impl From<MontScalar<FrConfig>> for Scalar
Source§fn from(value: Curve25519Scalar) -> Self
fn from(value: Curve25519Scalar) -> Self
Source§impl<T: MontConfig<4>> From<MontScalar<T>> for [u64; 4]
impl<T: MontConfig<4>> From<MontScalar<T>> for [u64; 4]
Source§fn from(value: MontScalar<T>) -> Self
fn from(value: MontScalar<T>) -> Self
Source§impl<T> From<MontScalar<T>> for BigInt
impl<T> From<MontScalar<T>> for BigInt
Source§fn from(value: MontScalar<T>) -> Self
fn from(value: MontScalar<T>) -> Self
Source§impl<T: MontConfig<4>> From<String> for MontScalar<T>
impl<T: MontConfig<4>> From<String> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<bool> for MontScalar<T>
impl<T: MontConfig<4>> From<bool> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<i128> for MontScalar<T>
impl<T: MontConfig<4>> From<i128> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<i16> for MontScalar<T>
impl<T: MontConfig<4>> From<i16> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<i32> for MontScalar<T>
impl<T: MontConfig<4>> From<i32> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<i64> for MontScalar<T>
impl<T: MontConfig<4>> From<i64> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<i8> for MontScalar<T>
impl<T: MontConfig<4>> From<i8> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<u128> for MontScalar<T>
impl<T: MontConfig<4>> From<u128> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<u16> for MontScalar<T>
impl<T: MontConfig<4>> From<u16> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<u32> for MontScalar<T>
impl<T: MontConfig<4>> From<u32> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<u64> for MontScalar<T>
impl<T: MontConfig<4>> From<u64> for MontScalar<T>
Source§impl<T: MontConfig<4>> From<u8> for MontScalar<T>
impl<T: MontConfig<4>> From<u8> for MontScalar<T>
Source§impl<T: MontConfig<4>> Hash for MontScalar<T>
impl<T: MontConfig<4>> Hash for MontScalar<T>
Source§impl<T: MontConfig<4>> Inv for MontScalar<T>
impl<T: MontConfig<4>> Inv for MontScalar<T>
Source§impl Mul<MontScalar<FrConfig>> for &RistrettoPoint
impl Mul<MontScalar<FrConfig>> for &RistrettoPoint
Source§type Output = RistrettoPoint
type Output = RistrettoPoint
*
operator.Source§impl Mul<MontScalar<FrConfig>> for RistrettoPoint
impl Mul<MontScalar<FrConfig>> for RistrettoPoint
Source§type Output = RistrettoPoint
type Output = RistrettoPoint
*
operator.Source§impl<T: MontConfig<4>> Mul for MontScalar<T>
impl<T: MontConfig<4>> Mul for MontScalar<T>
Source§impl<T: MontConfig<4>> MulAssign for MontScalar<T>
impl<T: MontConfig<4>> MulAssign for MontScalar<T>
Source§fn mul_assign(&mut self, rhs: Self)
fn mul_assign(&mut self, rhs: Self)
*=
operation. Read moreSource§impl<T: MontConfig<4>> Neg for &MontScalar<T>
impl<T: MontConfig<4>> Neg for &MontScalar<T>
Source§impl<T: MontConfig<4>> Neg for MontScalar<T>
impl<T: MontConfig<4>> Neg for MontScalar<T>
Source§impl<T: MontConfig<4>> One for MontScalar<T>
impl<T: MontConfig<4>> One for MontScalar<T>
Source§impl<T: MontConfig<4>> Ord for MontScalar<T>
impl<T: MontConfig<4>> Ord for MontScalar<T>
Source§impl<T: MontConfig<4>> PartialEq for MontScalar<T>
impl<T: MontConfig<4>> PartialEq for MontScalar<T>
Source§impl<T: MontConfig<4>> PartialOrd for MontScalar<T>
impl<T: MontConfig<4>> PartialOrd for MontScalar<T>
Source§impl<T: MontConfig<4>> Product for MontScalar<T>
impl<T: MontConfig<4>> Product for MontScalar<T>
Source§impl<T> Scalar for MontScalar<T>where
T: MontConfig<4>,
impl<T> Scalar for MontScalar<T>where
T: MontConfig<4>,
Source§const MAX_SIGNED: Self
const MAX_SIGNED: Self
Source§const TWO_POW_64: Self
const TWO_POW_64: Self
Source§const CHALLENGE_MASK: U256
const CHALLENGE_MASK: U256
Source§const MAX_SIGNED_U256: U256
const MAX_SIGNED_U256: U256
Source§impl<T: MontConfig<4>> Serialize for MontScalar<T>
impl<T: MontConfig<4>> Serialize for MontScalar<T>
Source§impl<T: MontConfig<4>> Sub for MontScalar<T>
impl<T: MontConfig<4>> Sub for MontScalar<T>
Source§impl<T: MontConfig<4>> SubAssign for MontScalar<T>
impl<T: MontConfig<4>> SubAssign for MontScalar<T>
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-=
operation. Read moreSource§impl<'a, T: MontConfig<4>> Sum<&'a MontScalar<T>> for MontScalar<T>
impl<'a, T: MontConfig<4>> Sum<&'a MontScalar<T>> for MontScalar<T>
Source§impl<T: MontConfig<4>> Sum for MontScalar<T>
impl<T: MontConfig<4>> Sum for MontScalar<T>
Source§impl<T: MontConfig<4>> TransparentWrapper<Fp<MontBackend<T, 4>, 4>> for MontScalar<T>
impl<T: MontConfig<4>> TransparentWrapper<Fp<MontBackend<T, 4>, 4>> for MontScalar<T>
Source§fn wrap_ref(s: &Inner) -> &Self
fn wrap_ref(s: &Inner) -> &Self
Source§fn wrap_mut(s: &mut Inner) -> &mut Self
fn wrap_mut(s: &mut Inner) -> &mut Self
Source§fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
fn wrap_slice(s: &[Inner]) -> &[Self]where
Self: Sized,
Source§fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
fn wrap_slice_mut(s: &mut [Inner]) -> &mut [Self]where
Self: Sized,
Source§fn peel_ref(s: &Self) -> &Inner
fn peel_ref(s: &Self) -> &Inner
Source§fn peel_mut(s: &mut Self) -> &mut Inner
fn peel_mut(s: &mut Self) -> &mut Inner
Source§fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
fn peel_slice(s: &[Self]) -> &[Inner]where
Self: Sized,
Source§fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
fn peel_slice_mut(s: &mut [Self]) -> &mut [Inner]where
Self: Sized,
Source§impl<T> TryFrom<BigInt> for MontScalar<T>
impl<T> TryFrom<BigInt> for MontScalar<T>
Source§impl<T> TryFrom<MontScalar<T>> for bool
impl<T> TryFrom<MontScalar<T>> for bool
Source§type Error = ScalarConversionError
type Error = ScalarConversionError
Source§impl<T> TryFrom<MontScalar<T>> for i128
impl<T> TryFrom<MontScalar<T>> for i128
Source§type Error = ScalarConversionError
type Error = ScalarConversionError
Source§impl<T> TryFrom<MontScalar<T>> for i16
impl<T> TryFrom<MontScalar<T>> for i16
Source§type Error = ScalarConversionError
type Error = ScalarConversionError
Source§impl<T> TryFrom<MontScalar<T>> for i32
impl<T> TryFrom<MontScalar<T>> for i32
Source§type Error = ScalarConversionError
type Error = ScalarConversionError
Source§impl<T> TryFrom<MontScalar<T>> for i64
impl<T> TryFrom<MontScalar<T>> for i64
Source§type Error = ScalarConversionError
type Error = ScalarConversionError
Source§impl<T> TryFrom<MontScalar<T>> for i8
impl<T> TryFrom<MontScalar<T>> for i8
Source§type Error = ScalarConversionError
type Error = ScalarConversionError
Source§impl<T> TryFrom<MontScalar<T>> for u8
impl<T> TryFrom<MontScalar<T>> for u8
Source§type Error = ScalarConversionError
type Error = ScalarConversionError
Source§impl<T: MontConfig<4>> UniformRand for MontScalar<T>
impl<T: MontConfig<4>> UniformRand for MontScalar<T>
Source§impl<T: MontConfig<4>> Valid for MontScalar<T>
impl<T: MontConfig<4>> Valid for MontScalar<T>
fn check(&self) -> Result<(), SerializationError>
fn batch_check<'a>(
batch: impl Iterator<Item = &'a Self> + Send,
) -> Result<(), SerializationError>where
Self: 'a,
Source§impl<T: MontConfig<4>> Zero for MontScalar<T>
impl<T: MontConfig<4>> Zero for MontScalar<T>
impl<T: MontConfig<4>> Copy for MontScalar<T>
impl<T: MontConfig<4>> Eq for MontScalar<T>
Auto Trait Implementations§
impl<T> Freeze for MontScalar<T>
impl<T> RefUnwindSafe for MontScalar<T>where
T: RefUnwindSafe,
impl<T> Send for MontScalar<T>
impl<T> Sync for MontScalar<T>
impl<T> Unpin for MontScalar<T>where
T: Unpin,
impl<T> UnwindSafe for MontScalar<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
Source§impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
impl<T> CanonicalSerializeHashExt for Twhere
T: CanonicalSerialize,
fn hash<H>(&self) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
fn hash_uncompressed<H>(
&self,
) -> GenericArray<u8, <H as OutputSizeUser>::OutputSize>where
H: Digest,
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<T> FmtForward for T
impl<T> FmtForward for T
Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§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.Source§impl<I> FromRadix10 for I
impl<I> FromRadix10 for I
Source§impl<I> FromRadix10Signed for I
impl<I> FromRadix10Signed for I
Source§impl<I> FromRadix16 for I
impl<I> FromRadix16 for I
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
Source§fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> Rwhere
Self: Sized,
Source§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 moreSource§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 moreSource§fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
Source§fn pipe_borrow_mut<'a, B, R>(
&'a mut self,
func: impl FnOnce(&'a mut B) -> R,
) -> R
fn pipe_borrow_mut<'a, B, R>( &'a mut self, func: impl FnOnce(&'a mut B) -> R, ) -> R
Source§fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
fn pipe_as_ref<'a, U, R>(&'a self, func: impl FnOnce(&'a U) -> R) -> R
self
, then passes self.as_ref()
into the pipe function.Source§fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
self
, then passes self.as_mut()
into the pipe
function.Source§fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> R
self
, then passes self.deref()
into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<S> ScalarExt for Swhere
S: Scalar,
impl<S> ScalarExt for Swhere
S: Scalar,
Source§fn pow10(exponent: u8) -> Self
fn pow10(exponent: u8) -> Self
Source§fn signed_cmp(&self, other: &Self) -> Ordering
fn signed_cmp(&self, other: &Self) -> Ordering
Scalar
s as signed numbers.Source§fn from_wrapping(value: U256) -> Self
fn from_wrapping(value: U256) -> Self
Source§fn into_u256_wrapping(self) -> U256
fn into_u256_wrapping(self) -> U256
MAX_SIGNED
shall remain positive, even if they are representative of negative values.Source§fn from_byte_slice_via_hash(bytes: &[u8]) -> Self
fn from_byte_slice_via_hash(bytes: &[u8]) -> Self
PoSQL
cryptographic
objects. This function masks off the last byte of the hash to ensure the result
fits in this range.Source§impl<T> Tap for T
impl<T> Tap for T
Source§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Borrow<B>
of a value. Read moreSource§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
BorrowMut<B>
of a value. Read moreSource§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
AsRef<R>
view of a value. Read moreSource§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
AsMut<R>
view of a value. Read moreSource§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Deref::Target
of a value. Read moreSource§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Deref::Target
of a value. Read moreSource§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.Source§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.Source§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.tap_borrow()
only in debug builds, and is erased in release
builds.Source§fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut_dbg<B>(self, func: impl FnOnce(&mut B)) -> Self
.tap_borrow_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
.tap_ref()
only in debug builds, and is erased in release
builds.Source§fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut_dbg<R>(self, func: impl FnOnce(&mut R)) -> Self
.tap_ref_mut()
only in debug builds, and is erased in release
builds.Source§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
.tap_deref()
only in debug builds, and is erased in release
builds.