Struct scuttlebutt::field::F2e19x3e26
source · [−]pub struct F2e19x3e26 { /* private fields */ }
Expand description
The finite field over the prime $M = 2^{19} 3^{26} + 1
$.
Hence, $\phi(M)
$ is divisible by $2^{19}
$ and $3^{26}
$
and thus supports a large number of FFT<2> and FFT<3> sizes for
threshold secret sharing.
Trait Implementations
sourceimpl<'a> Add<&'a F2e19x3e26> for &'a F2e19x3e26
impl<'a> Add<&'a F2e19x3e26> for &'a F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
+
operator.sourcefn add(self, rhs: &'a F2e19x3e26) -> Self::Output
fn add(self, rhs: &'a F2e19x3e26) -> Self::Output
Performs the
+
operation. Read moresourceimpl<'a> Add<&'a F2e19x3e26> for F2e19x3e26
impl<'a> Add<&'a F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
+
operator.sourcefn add(self, rhs: &'a F2e19x3e26) -> Self::Output
fn add(self, rhs: &'a F2e19x3e26) -> Self::Output
Performs the
+
operation. Read moresourceimpl<'a> Add<F2e19x3e26> for &'a F2e19x3e26
impl<'a> Add<F2e19x3e26> for &'a F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
+
operator.sourcefn add(self, rhs: F2e19x3e26) -> Self::Output
fn add(self, rhs: F2e19x3e26) -> Self::Output
Performs the
+
operation. Read moresourceimpl Add<F2e19x3e26> for F2e19x3e26
impl Add<F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
+
operator.sourcefn add(self, rhs: F2e19x3e26) -> Self::Output
fn add(self, rhs: F2e19x3e26) -> Self::Output
Performs the
+
operation. Read moresourceimpl AddAssign<&F2e19x3e26> for F2e19x3e26
impl AddAssign<&F2e19x3e26> for F2e19x3e26
sourcefn add_assign(&mut self, rhs: &F2e19x3e26)
fn add_assign(&mut self, rhs: &F2e19x3e26)
Performs the
+=
operation. Read moresourceimpl AddAssign<F2e19x3e26> for F2e19x3e26
impl AddAssign<F2e19x3e26> for F2e19x3e26
sourcefn add_assign(&mut self, rhs: F2e19x3e26)
fn add_assign(&mut self, rhs: F2e19x3e26)
Performs the
+=
operation. Read moresourceimpl CanonicalSerialize for F2e19x3e26
impl CanonicalSerialize for F2e19x3e26
sourcefn to_bytes(&self) -> GenericArray<u8, Self::ByteReprLen>
fn to_bytes(&self) -> GenericArray<u8, Self::ByteReprLen>
Return the canonical byte representation (byte representation of the reduced field element).
type Serializer = ByteElementSerializer<F2e19x3e26>
type Serializer = ByteElementSerializer<F2e19x3e26>
A way to serialize field elements of this type. Read more
type Deserializer = ByteElementDeserializer<F2e19x3e26>
type Deserializer = ByteElementDeserializer<F2e19x3e26>
A way to deserialize field elements of this type. Read more
type ByteReprLen = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>
type ByteReprLen = UInt<UInt<UInt<UInt<UTerm, B1>, B0>, B0>, B0>
The number of bytes in the byte representation for this element.
type FromBytesError = BiggerThanModulus
type FromBytesError = BiggerThanModulus
The error that can result from trying to decode an invalid byte sequence.
sourcefn from_bytes(
buf: &GenericArray<u8, Self::ByteReprLen>
) -> Result<Self, BiggerThanModulus>
fn from_bytes(
buf: &GenericArray<u8, Self::ByteReprLen>
) -> Result<Self, BiggerThanModulus>
Deserialize an element from a byte array. Read more
sourceimpl Clone for F2e19x3e26
impl Clone for F2e19x3e26
sourcefn clone(&self) -> F2e19x3e26
fn clone(&self) -> F2e19x3e26
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl ConditionallySelectable for F2e19x3e26
impl ConditionallySelectable for F2e19x3e26
sourcefn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
fn conditional_select(a: &Self, b: &Self, choice: Choice) -> Self
sourcefn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
sourceimpl ConstantTimeEq for F2e19x3e26
impl ConstantTimeEq for F2e19x3e26
sourceimpl Debug for F2e19x3e26
impl Debug for F2e19x3e26
sourceimpl Default for F2e19x3e26
impl Default for F2e19x3e26
sourceimpl<'de> Deserialize<'de> for F2e19x3e26
impl<'de> Deserialize<'de> for F2e19x3e26
sourcefn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Distribution<F2e19x3e26> for Standard
impl Distribution<F2e19x3e26> for Standard
sourcefn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> F2e19x3e26
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> F2e19x3e26
Generate a random value of
T
, using rng
as the source of randomness.sourcefn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where
R: Rng,
fn sample_iter<R>(self, rng: R) -> DistIter<Self, R, T>where
R: Rng,
Create an iterator that generates random values of
T
, using rng
as
the source of randomness. Read moresourceimpl<'a> Div<&'a F2e19x3e26> for &'a F2e19x3e26
impl<'a> Div<&'a F2e19x3e26> for &'a F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
/
operator.sourcefn div(self, rhs: &'a F2e19x3e26) -> Self::Output
fn div(self, rhs: &'a F2e19x3e26) -> Self::Output
Performs the
/
operation. Read moresourceimpl<'a> Div<&'a F2e19x3e26> for F2e19x3e26
impl<'a> Div<&'a F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
/
operator.sourcefn div(self, rhs: &'a F2e19x3e26) -> Self::Output
fn div(self, rhs: &'a F2e19x3e26) -> Self::Output
Performs the
/
operation. Read moresourceimpl<'a> Div<F2e19x3e26> for &'a F2e19x3e26
impl<'a> Div<F2e19x3e26> for &'a F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
/
operator.sourcefn div(self, rhs: F2e19x3e26) -> Self::Output
fn div(self, rhs: F2e19x3e26) -> Self::Output
Performs the
/
operation. Read moresourceimpl Div<F2e19x3e26> for F2e19x3e26
impl Div<F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
/
operator.sourcefn div(self, rhs: F2e19x3e26) -> Self::Output
fn div(self, rhs: F2e19x3e26) -> Self::Output
Performs the
/
operation. Read moresourceimpl<'a> DivAssign<&'a F2e19x3e26> for F2e19x3e26
impl<'a> DivAssign<&'a F2e19x3e26> for F2e19x3e26
sourcefn div_assign(&mut self, rhs: &Self)
fn div_assign(&mut self, rhs: &Self)
Performs the
/=
operation. Read moresourceimpl DivAssign<F2e19x3e26> for F2e19x3e26
impl DivAssign<F2e19x3e26> for F2e19x3e26
sourcefn div_assign(&mut self, rhs: F2e19x3e26)
fn div_assign(&mut self, rhs: F2e19x3e26)
Performs the
/=
operation. Read moresourceimpl FieldForFFT<2> for F2e19x3e26
impl FieldForFFT<2> for F2e19x3e26
sourceimpl FieldForFFT<3> for F2e19x3e26
impl FieldForFFT<3> for F2e19x3e26
sourceimpl FiniteField for F2e19x3e26
impl FiniteField for F2e19x3e26
type PrimeField = F2e19x3e26
type PrimeField = F2e19x3e26
The prime-order subfield of the finite field.
sourcefn polynomial_modulus() -> Polynomial<Self::PrimeField>
fn polynomial_modulus() -> Polynomial<Self::PrimeField>
Multiplication over field elements should be reduced over this polynomial.
type NumberOfBitsInBitDecomposition = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B1>
type NumberOfBitsInBitDecomposition = UInt<UInt<UInt<UInt<UInt<UInt<UTerm, B1>, B1>, B1>, B1>, B0>, B1>
The number of bits in the bit decomposition of any element of this finite field. Read more
sourcefn bit_decomposition(
&self
) -> GenericArray<bool, Self::NumberOfBitsInBitDecomposition>
fn bit_decomposition(
&self
) -> GenericArray<bool, Self::NumberOfBitsInBitDecomposition>
Decompose the given field element into bits. Read more
sourcefn decompose<T: FiniteField + IsSubFieldOf<Self>>(
&self
) -> GenericArray<T, DegreeModulo<T, Self>>
fn decompose<T: FiniteField + IsSubFieldOf<Self>>(
&self
) -> GenericArray<T, DegreeModulo<T, Self>>
sourcefn from_subfield<T: FiniteField + IsSubFieldOf<Self>>(
arr: &GenericArray<T, DegreeModulo<T, Self>>
) -> Self
fn from_subfield<T: FiniteField + IsSubFieldOf<Self>>(
arr: &GenericArray<T, DegreeModulo<T, Self>>
) -> Self
Create a field element from an array of subfield
T
elements. Read moresourceimpl FiniteRing for F2e19x3e26
impl FiniteRing for F2e19x3e26
sourcefn from_uniform_bytes(x: &[u8; 16]) -> Self
fn from_uniform_bytes(x: &[u8; 16]) -> Self
Construct an element from the given uniformly chosen random bytes.
sourcefn random_nonzero<R: Rng + ?Sized>(rng: &mut R) -> Self
fn random_nonzero<R: Rng + ?Sized>(rng: &mut R) -> Self
Generate a random non-zero element.
sourcefn pow_bounded(&self, n: u128, bound: u16) -> Self
fn pow_bounded(&self, n: u128, bound: u16) -> Self
sourcefn pow_var_time(&self, n: u128) -> Self
fn pow_var_time(&self, n: u128) -> Self
Compute
self
to the power of n
, in non-constant time.sourceimpl Hash for F2e19x3e26
impl Hash for F2e19x3e26
sourceimpl<'a> Mul<&'a F2e19x3e26> for &'a F2e19x3e26
impl<'a> Mul<&'a F2e19x3e26> for &'a F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
*
operator.sourcefn mul(self, rhs: &'a F2e19x3e26) -> Self::Output
fn mul(self, rhs: &'a F2e19x3e26) -> Self::Output
Performs the
*
operation. Read moresourceimpl<'a> Mul<&'a F2e19x3e26> for F2e19x3e26
impl<'a> Mul<&'a F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
*
operator.sourcefn mul(self, rhs: &'a F2e19x3e26) -> Self::Output
fn mul(self, rhs: &'a F2e19x3e26) -> Self::Output
Performs the
*
operation. Read moresourceimpl<'a> Mul<F2e19x3e26> for &'a F2e19x3e26
impl<'a> Mul<F2e19x3e26> for &'a F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
*
operator.sourcefn mul(self, rhs: F2e19x3e26) -> Self::Output
fn mul(self, rhs: F2e19x3e26) -> Self::Output
Performs the
*
operation. Read moresourceimpl Mul<F2e19x3e26> for F2e19x3e26
impl Mul<F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
*
operator.sourcefn mul(self, rhs: F2e19x3e26) -> Self::Output
fn mul(self, rhs: F2e19x3e26) -> Self::Output
Performs the
*
operation. Read moresourceimpl MulAdd<F2e19x3e26, F2e19x3e26> for F2e19x3e26
impl MulAdd<F2e19x3e26, F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the fused multiply-add.
sourceimpl MulAssign<&F2e19x3e26> for F2e19x3e26
impl MulAssign<&F2e19x3e26> for F2e19x3e26
sourcefn mul_assign(&mut self, rhs: &F2e19x3e26)
fn mul_assign(&mut self, rhs: &F2e19x3e26)
Performs the
*=
operation. Read moresourceimpl MulAssign<F2e19x3e26> for F2e19x3e26
impl MulAssign<F2e19x3e26> for F2e19x3e26
sourcefn mul_assign(&mut self, rhs: F2e19x3e26)
fn mul_assign(&mut self, rhs: F2e19x3e26)
Performs the
*=
operation. Read moresourceimpl Neg for F2e19x3e26
impl Neg for F2e19x3e26
sourceimpl Num for F2e19x3e26
impl Num for F2e19x3e26
type FromStrRadixErr = BiggerThanModulus
sourcefn from_str_radix(s: &str, r: u32) -> Result<Self, Self::FromStrRadixErr>
fn from_str_radix(s: &str, r: u32) -> Result<Self, Self::FromStrRadixErr>
Convert from a string and radix (typically
2..=36
). Read moresourceimpl One for F2e19x3e26
impl One for F2e19x3e26
sourceimpl PartialEq<F2e19x3e26> for F2e19x3e26
impl PartialEq<F2e19x3e26> for F2e19x3e26
sourceimpl Product<F2e19x3e26> for F2e19x3e26
impl Product<F2e19x3e26> for F2e19x3e26
sourceimpl Rem<F2e19x3e26> for F2e19x3e26
impl Rem<F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
%
operator.sourceimpl Serialize for F2e19x3e26
impl Serialize for F2e19x3e26
sourceimpl<'a> Sub<&'a F2e19x3e26> for &'a F2e19x3e26
impl<'a> Sub<&'a F2e19x3e26> for &'a F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
-
operator.sourcefn sub(self, rhs: &'a F2e19x3e26) -> Self::Output
fn sub(self, rhs: &'a F2e19x3e26) -> Self::Output
Performs the
-
operation. Read moresourceimpl<'a> Sub<&'a F2e19x3e26> for F2e19x3e26
impl<'a> Sub<&'a F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
-
operator.sourcefn sub(self, rhs: &'a F2e19x3e26) -> Self::Output
fn sub(self, rhs: &'a F2e19x3e26) -> Self::Output
Performs the
-
operation. Read moresourceimpl<'a> Sub<F2e19x3e26> for &'a F2e19x3e26
impl<'a> Sub<F2e19x3e26> for &'a F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
-
operator.sourcefn sub(self, rhs: F2e19x3e26) -> Self::Output
fn sub(self, rhs: F2e19x3e26) -> Self::Output
Performs the
-
operation. Read moresourceimpl Sub<F2e19x3e26> for F2e19x3e26
impl Sub<F2e19x3e26> for F2e19x3e26
type Output = F2e19x3e26
type Output = F2e19x3e26
The resulting type after applying the
-
operator.sourcefn sub(self, rhs: F2e19x3e26) -> Self::Output
fn sub(self, rhs: F2e19x3e26) -> Self::Output
Performs the
-
operation. Read moresourceimpl SubAssign<&F2e19x3e26> for F2e19x3e26
impl SubAssign<&F2e19x3e26> for F2e19x3e26
sourcefn sub_assign(&mut self, rhs: &F2e19x3e26)
fn sub_assign(&mut self, rhs: &F2e19x3e26)
Performs the
-=
operation. Read moresourceimpl SubAssign<F2e19x3e26> for F2e19x3e26
impl SubAssign<F2e19x3e26> for F2e19x3e26
sourcefn sub_assign(&mut self, rhs: F2e19x3e26)
fn sub_assign(&mut self, rhs: F2e19x3e26)
Performs the
-=
operation. Read moresourceimpl Sum<F2e19x3e26> for F2e19x3e26
impl Sum<F2e19x3e26> for F2e19x3e26
sourceimpl TryFrom<u128> for F2e19x3e26
impl TryFrom<u128> for F2e19x3e26
sourceimpl Zero for F2e19x3e26
impl Zero for F2e19x3e26
impl Copy for F2e19x3e26
impl Eq for F2e19x3e26
impl PrimeFiniteField for F2e19x3e26
impl ScalarOperand for F2e19x3e26
impl StructuralEq for F2e19x3e26
Auto Trait Implementations
impl RefUnwindSafe for F2e19x3e26
impl Send for F2e19x3e26
impl Sync for F2e19x3e26
impl Unpin for F2e19x3e26
impl UnwindSafe for F2e19x3e26
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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,
Causes
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,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_exp(self) -> FmtLowerExp<Self>where
Self: LowerExp,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_lower_hex(self) -> FmtLowerHex<Self>where
Self: LowerHex,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
fn fmt_octal(self) -> FmtOctal<Self>where
Self: Octal,
Causes
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,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_exp(self) -> FmtUpperExp<Self>where
Self: UpperExp,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_upper_hex(self) -> FmtUpperHex<Self>where
Self: UpperHex,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
fn fmt_list(self) -> FmtList<Self>where
&'a Self: for<'a> IntoIterator,
Formats each item in a sequence. Read more
sourceimpl<FE> IsSubFieldOf<FE> for FEwhere
FE: FiniteField,
impl<FE> IsSubFieldOf<FE> for FEwhere
FE: FiniteField,
type DegreeModulo = UInt<UTerm, B1>
type DegreeModulo = UInt<UTerm, B1>
The value $
n
$ from above.sourcefn decompose_superfield(
fe: &FE
) -> GenericArray<FE, <FE as IsSubFieldOf<FE>>::DegreeModulo>
fn decompose_superfield(
fe: &FE
) -> GenericArray<FE, <FE as IsSubFieldOf<FE>>::DegreeModulo>
Turn
FE
into an array of Self
, a subfield of FE
.sourcefn form_superfield(
components: &GenericArray<FE, <FE as IsSubFieldOf<FE>>::DegreeModulo>
) -> FE
fn form_superfield(
components: &GenericArray<FE, <FE as IsSubFieldOf<FE>>::DegreeModulo>
) -> FE
Homomorphically lift an array of
Self
into an FE
.impl<T> Pipe for Twhere
T: ?Sized,
impl<T> Pipe for Twhere
T: ?Sized,
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
fn pipe<R>(self, func: impl FnOnce(Self) -> R) -> R
Pipes by value. This is generally the method you want to use. Read more
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,
Borrows
self
and passes that borrow into the pipe function. Read morefn 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,
Mutably borrows
self
and passes that borrow into the pipe function. Read morefn 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,
Borrows
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,
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> Rwhere
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
fn pipe_deref<'a, T, R>(&'a self, func: impl FnOnce(&'a T) -> R) -> Rwhere
Self: Deref<Target = T>,
T: 'a + ?Sized,
R: 'a,
Borrows
self
, then passes self.deref()
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,
Immutable access to the
Borrow<B>
of a value. Read morefn 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,
Mutable access to the
BorrowMut<B>
of a value. Read morefn 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,
Immutable access to the
AsRef<R>
view of a value. Read morefn 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,
Mutable access to the
AsMut<R>
view of a value. Read morefn 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,
Immutable access to the
Deref::Target
of a value. Read morefn 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,
Mutable access to the
Deref::Target
of a value. Read morefn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
fn tap_dbg(self, func: impl FnOnce(&Self)) -> Self
Calls
.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
Calls
.tap_mut()
only in debug builds, and is erased in release
builds. Read morefn 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,
Calls
.tap_borrow()
only in debug builds, and is erased in release
builds. Read morefn 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,
Calls
.tap_borrow_mut()
only in debug builds, and is erased in release
builds. Read morefn 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,
Calls
.tap_ref()
only in debug builds, and is erased in release
builds. Read morefn 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,
Calls
.tap_ref_mut()
only in debug builds, and is erased in release
builds. Read more