Struct JubjubSubgroup
pub struct JubjubSubgroup(/* private fields */);Expand description
This represents a point in the prime-order subgroup of Jubjub, in extended coordinates.
Implementations§
§impl JubjubSubgroup
impl JubjubSubgroup
pub fn from_raw_unchecked(u: Fq, v: Fq) -> JubjubSubgroup
pub fn from_raw_unchecked(u: Fq, v: Fq) -> JubjubSubgroup
Constructs an AffinePoint given u and v without checking that the
point is on the curve or in the prime-order subgroup.
This should only be used for hard-coding constants (e.g. fixed
generators); in all other cases, use JubjubSubgroup::from_bytes
instead.
Trait Implementations§
§impl<'b> Add<&'b JubjubSubgroup> for &JubjubExtended
impl<'b> Add<&'b JubjubSubgroup> for &JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+ operator.§fn add(self, other: &'b JubjubSubgroup) -> JubjubExtended
fn add(self, other: &'b JubjubSubgroup) -> JubjubExtended
Performs the
+ operation. Read more§impl<'b> Add<&'b JubjubSubgroup> for &JubjubSubgroup
impl<'b> Add<&'b JubjubSubgroup> for &JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
+ operator.§fn add(self, other: &'b JubjubSubgroup) -> JubjubSubgroup
fn add(self, other: &'b JubjubSubgroup) -> JubjubSubgroup
Performs the
+ operation. Read more§impl<'b> Add<&'b JubjubSubgroup> for JubjubExtended
impl<'b> Add<&'b JubjubSubgroup> for JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+ operator.§fn add(self, rhs: &'b JubjubSubgroup) -> JubjubExtended
fn add(self, rhs: &'b JubjubSubgroup) -> JubjubExtended
Performs the
+ operation. Read more§impl<'b> Add<&'b JubjubSubgroup> for JubjubSubgroup
impl<'b> Add<&'b JubjubSubgroup> for JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
+ operator.§fn add(self, rhs: &'b JubjubSubgroup) -> JubjubSubgroup
fn add(self, rhs: &'b JubjubSubgroup) -> JubjubSubgroup
Performs the
+ operation. Read more§impl<'a> Add<JubjubSubgroup> for &'a JubjubExtended
impl<'a> Add<JubjubSubgroup> for &'a JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+ operator.§fn add(self, rhs: JubjubSubgroup) -> JubjubExtended
fn add(self, rhs: JubjubSubgroup) -> JubjubExtended
Performs the
+ operation. Read more§impl<'a> Add<JubjubSubgroup> for &'a JubjubSubgroup
impl<'a> Add<JubjubSubgroup> for &'a JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
+ operator.§fn add(self, rhs: JubjubSubgroup) -> JubjubSubgroup
fn add(self, rhs: JubjubSubgroup) -> JubjubSubgroup
Performs the
+ operation. Read more§impl Add<JubjubSubgroup> for JubjubExtended
impl Add<JubjubSubgroup> for JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
+ operator.§fn add(self, rhs: JubjubSubgroup) -> JubjubExtended
fn add(self, rhs: JubjubSubgroup) -> JubjubExtended
Performs the
+ operation. Read more§impl Add for JubjubSubgroup
impl Add for JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
+ operator.§fn add(self, rhs: JubjubSubgroup) -> JubjubSubgroup
fn add(self, rhs: JubjubSubgroup) -> JubjubSubgroup
Performs the
+ operation. Read more§impl<'b> AddAssign<&'b JubjubSubgroup> for JubjubExtended
impl<'b> AddAssign<&'b JubjubSubgroup> for JubjubExtended
§fn add_assign(&mut self, rhs: &'b JubjubSubgroup)
fn add_assign(&mut self, rhs: &'b JubjubSubgroup)
Performs the
+= operation. Read more§impl<'b> AddAssign<&'b JubjubSubgroup> for JubjubSubgroup
impl<'b> AddAssign<&'b JubjubSubgroup> for JubjubSubgroup
§fn add_assign(&mut self, rhs: &'b JubjubSubgroup)
fn add_assign(&mut self, rhs: &'b JubjubSubgroup)
Performs the
+= operation. Read more§impl AddAssign<JubjubSubgroup> for JubjubExtended
impl AddAssign<JubjubSubgroup> for JubjubExtended
§fn add_assign(&mut self, rhs: JubjubSubgroup)
fn add_assign(&mut self, rhs: JubjubSubgroup)
Performs the
+= operation. Read more§impl AddAssign for JubjubSubgroup
impl AddAssign for JubjubSubgroup
§fn add_assign(&mut self, rhs: JubjubSubgroup)
fn add_assign(&mut self, rhs: JubjubSubgroup)
Performs the
+= operation. Read more§impl Clone for JubjubSubgroup
impl Clone for JubjubSubgroup
§fn clone(&self) -> JubjubSubgroup
fn clone(&self) -> JubjubSubgroup
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl ConditionallySelectable for JubjubSubgroup
impl ConditionallySelectable for JubjubSubgroup
§fn conditional_select(
a: &JubjubSubgroup,
b: &JubjubSubgroup,
choice: Choice,
) -> JubjubSubgroup
fn conditional_select( a: &JubjubSubgroup, b: &JubjubSubgroup, choice: Choice, ) -> JubjubSubgroup
Source§fn conditional_assign(&mut self, other: &Self, choice: Choice)
fn conditional_assign(&mut self, other: &Self, choice: Choice)
Source§fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
fn conditional_swap(a: &mut Self, b: &mut Self, choice: Choice)
Conditionally swap
self and other if choice == 1; otherwise,
reassign both unto themselves. Read more§impl Debug for JubjubSubgroup
impl Debug for JubjubSubgroup
§impl Default for JubjubSubgroup
impl Default for JubjubSubgroup
§fn default() -> JubjubSubgroup
fn default() -> JubjubSubgroup
Returns the “default value” for a type. Read more
§impl Display for JubjubSubgroup
impl Display for JubjubSubgroup
§impl<'a> From<&'a JubjubSubgroup> for &'a JubjubExtended
impl<'a> From<&'a JubjubSubgroup> for &'a JubjubExtended
§fn from(val: &'a JubjubSubgroup) -> &'a JubjubExtended
fn from(val: &'a JubjubSubgroup) -> &'a JubjubExtended
Converts to this type from the input type.
§impl From<JubjubSubgroup> for JubjubExtended
impl From<JubjubSubgroup> for JubjubExtended
§fn from(val: JubjubSubgroup) -> JubjubExtended
fn from(val: JubjubSubgroup) -> JubjubExtended
Converts to this type from the input type.
§impl Group for JubjubSubgroup
impl Group for JubjubSubgroup
§fn random(rng: impl RngCore) -> JubjubSubgroup
fn random(rng: impl RngCore) -> JubjubSubgroup
Returns an element chosen uniformly at random from the non-identity elements of
this group. Read more
§fn identity() -> JubjubSubgroup
fn identity() -> JubjubSubgroup
Returns the additive identity, also known as the “neutral element”.
§fn generator() -> JubjubSubgroup
fn generator() -> JubjubSubgroup
Returns a fixed generator of the prime-order subgroup.
§fn is_identity(&self) -> Choice
fn is_identity(&self) -> Choice
Determines if this point is the identity.
§fn double(&self) -> JubjubSubgroup
fn double(&self) -> JubjubSubgroup
Doubles this element.
§impl GroupEncoding for JubjubSubgroup
impl GroupEncoding for JubjubSubgroup
§fn from_bytes(
bytes: &<JubjubSubgroup as GroupEncoding>::Repr,
) -> CtOption<JubjubSubgroup>
fn from_bytes( bytes: &<JubjubSubgroup as GroupEncoding>::Repr, ) -> CtOption<JubjubSubgroup>
Attempts to deserialize a group element from its encoding.
§fn from_bytes_unchecked(
bytes: &<JubjubSubgroup as GroupEncoding>::Repr,
) -> CtOption<JubjubSubgroup>
fn from_bytes_unchecked( bytes: &<JubjubSubgroup as GroupEncoding>::Repr, ) -> CtOption<JubjubSubgroup>
Attempts to deserialize a group element, not checking if the element is valid. Read more
§fn to_bytes(&self) -> <JubjubSubgroup as GroupEncoding>::Repr
fn to_bytes(&self) -> <JubjubSubgroup as GroupEncoding>::Repr
Converts this element into its byte encoding. This may or may not support
encoding the identity.
§impl<'b> Mul<&'b Fr> for &JubjubSubgroup
impl<'b> Mul<&'b Fr> for &JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
* operator.§fn mul(self, other: &'b Fr) -> JubjubSubgroup
fn mul(self, other: &'b Fr) -> JubjubSubgroup
Performs the
* operation. Read more§impl<'b> Mul<&'b Fr> for JubjubSubgroup
impl<'b> Mul<&'b Fr> for JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
* operator.§fn mul(self, rhs: &'b Fr) -> JubjubSubgroup
fn mul(self, rhs: &'b Fr) -> JubjubSubgroup
Performs the
* operation. Read more§impl<'a> Mul<Fr> for &'a JubjubSubgroup
impl<'a> Mul<Fr> for &'a JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
* operator.§fn mul(self, rhs: Fr) -> JubjubSubgroup
fn mul(self, rhs: Fr) -> JubjubSubgroup
Performs the
* operation. Read more§impl Mul<Fr> for JubjubSubgroup
impl Mul<Fr> for JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
* operator.§fn mul(self, rhs: Fr) -> JubjubSubgroup
fn mul(self, rhs: Fr) -> JubjubSubgroup
Performs the
* operation. Read more§impl<'b> MulAssign<&'b Fr> for JubjubSubgroup
impl<'b> MulAssign<&'b Fr> for JubjubSubgroup
§fn mul_assign(&mut self, rhs: &'b Fr)
fn mul_assign(&mut self, rhs: &'b Fr)
Performs the
*= operation. Read more§impl MulAssign<Fr> for JubjubSubgroup
impl MulAssign<Fr> for JubjubSubgroup
§fn mul_assign(&mut self, rhs: Fr)
fn mul_assign(&mut self, rhs: Fr)
Performs the
*= operation. Read more§impl Neg for &JubjubSubgroup
impl Neg for &JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
- operator.§fn neg(self) -> JubjubSubgroup
fn neg(self) -> JubjubSubgroup
Performs the unary
- operation. Read more§impl Neg for JubjubSubgroup
impl Neg for JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
- operator.§fn neg(self) -> JubjubSubgroup
fn neg(self) -> JubjubSubgroup
Performs the unary
- operation. Read more§impl PartialEq for JubjubSubgroup
impl PartialEq for JubjubSubgroup
§impl<'b> Sub<&'b JubjubSubgroup> for &JubjubExtended
impl<'b> Sub<&'b JubjubSubgroup> for &JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
- operator.§fn sub(self, other: &'b JubjubSubgroup) -> JubjubExtended
fn sub(self, other: &'b JubjubSubgroup) -> JubjubExtended
Performs the
- operation. Read more§impl<'b> Sub<&'b JubjubSubgroup> for &JubjubSubgroup
impl<'b> Sub<&'b JubjubSubgroup> for &JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
- operator.§fn sub(self, other: &'b JubjubSubgroup) -> JubjubSubgroup
fn sub(self, other: &'b JubjubSubgroup) -> JubjubSubgroup
Performs the
- operation. Read more§impl<'b> Sub<&'b JubjubSubgroup> for JubjubExtended
impl<'b> Sub<&'b JubjubSubgroup> for JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
- operator.§fn sub(self, rhs: &'b JubjubSubgroup) -> JubjubExtended
fn sub(self, rhs: &'b JubjubSubgroup) -> JubjubExtended
Performs the
- operation. Read more§impl<'b> Sub<&'b JubjubSubgroup> for JubjubSubgroup
impl<'b> Sub<&'b JubjubSubgroup> for JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
- operator.§fn sub(self, rhs: &'b JubjubSubgroup) -> JubjubSubgroup
fn sub(self, rhs: &'b JubjubSubgroup) -> JubjubSubgroup
Performs the
- operation. Read more§impl<'a> Sub<JubjubSubgroup> for &'a JubjubExtended
impl<'a> Sub<JubjubSubgroup> for &'a JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
- operator.§fn sub(self, rhs: JubjubSubgroup) -> JubjubExtended
fn sub(self, rhs: JubjubSubgroup) -> JubjubExtended
Performs the
- operation. Read more§impl<'a> Sub<JubjubSubgroup> for &'a JubjubSubgroup
impl<'a> Sub<JubjubSubgroup> for &'a JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
- operator.§fn sub(self, rhs: JubjubSubgroup) -> JubjubSubgroup
fn sub(self, rhs: JubjubSubgroup) -> JubjubSubgroup
Performs the
- operation. Read more§impl Sub<JubjubSubgroup> for JubjubExtended
impl Sub<JubjubSubgroup> for JubjubExtended
§type Output = JubjubExtended
type Output = JubjubExtended
The resulting type after applying the
- operator.§fn sub(self, rhs: JubjubSubgroup) -> JubjubExtended
fn sub(self, rhs: JubjubSubgroup) -> JubjubExtended
Performs the
- operation. Read more§impl Sub for JubjubSubgroup
impl Sub for JubjubSubgroup
§type Output = JubjubSubgroup
type Output = JubjubSubgroup
The resulting type after applying the
- operator.§fn sub(self, rhs: JubjubSubgroup) -> JubjubSubgroup
fn sub(self, rhs: JubjubSubgroup) -> JubjubSubgroup
Performs the
- operation. Read more§impl<'b> SubAssign<&'b JubjubSubgroup> for JubjubExtended
impl<'b> SubAssign<&'b JubjubSubgroup> for JubjubExtended
§fn sub_assign(&mut self, rhs: &'b JubjubSubgroup)
fn sub_assign(&mut self, rhs: &'b JubjubSubgroup)
Performs the
-= operation. Read more§impl<'b> SubAssign<&'b JubjubSubgroup> for JubjubSubgroup
impl<'b> SubAssign<&'b JubjubSubgroup> for JubjubSubgroup
§fn sub_assign(&mut self, rhs: &'b JubjubSubgroup)
fn sub_assign(&mut self, rhs: &'b JubjubSubgroup)
Performs the
-= operation. Read more§impl SubAssign<JubjubSubgroup> for JubjubExtended
impl SubAssign<JubjubSubgroup> for JubjubExtended
§fn sub_assign(&mut self, rhs: JubjubSubgroup)
fn sub_assign(&mut self, rhs: JubjubSubgroup)
Performs the
-= operation. Read more§impl SubAssign for JubjubSubgroup
impl SubAssign for JubjubSubgroup
§fn sub_assign(&mut self, rhs: JubjubSubgroup)
fn sub_assign(&mut self, rhs: JubjubSubgroup)
Performs the
-= operation. Read more§impl<T> Sum<T> for JubjubSubgroupwhere
T: Borrow<JubjubSubgroup>,
impl<T> Sum<T> for JubjubSubgroupwhere
T: Borrow<JubjubSubgroup>,
§fn sum<I>(iter: I) -> JubjubSubgroupwhere
I: Iterator<Item = T>,
fn sum<I>(iter: I) -> JubjubSubgroupwhere
I: Iterator<Item = T>,
Takes an iterator and generates
Self from the elements by “summing up”
the items.impl Copy for JubjubSubgroup
impl Eq for JubjubSubgroup
impl PrimeGroup for JubjubSubgroup
impl StructuralPartialEq for JubjubSubgroup
Auto Trait Implementations§
impl Freeze for JubjubSubgroup
impl RefUnwindSafe for JubjubSubgroup
impl Send for JubjubSubgroup
impl Sync for JubjubSubgroup
impl Unpin for JubjubSubgroup
impl UnwindSafe for JubjubSubgroup
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ConditionallyNegatable for T
impl<T> ConditionallyNegatable for T
Source§fn conditional_negate(&mut self, choice: Choice)
fn conditional_negate(&mut self, choice: Choice)
§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,
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,
Causes
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,
Causes
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,
Causes
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,
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,
Causes
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,
Causes
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,
Causes
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,
Formats each item in a sequence. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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>
Converts
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>
Converts
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 more§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,
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 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,
Mutably borrows
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) -> R
fn pipe_borrow<'a, B, R>(&'a self, func: impl FnOnce(&'a B) -> R) -> R
§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
§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
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) -> R
fn pipe_as_mut<'a, U, R>(&'a mut self, func: impl FnOnce(&'a mut U) -> R) -> R
Mutably borrows
self, then passes self.as_mut() into the pipe
function.§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
Borrows
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> Tap for T
impl<T> Tap for T
§fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow<B>(self, func: impl FnOnce(&B)) -> Self
Immutable access to the
Borrow<B> of a value. Read more§fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
fn tap_borrow_mut<B>(self, func: impl FnOnce(&mut B)) -> Self
Mutable access to the
BorrowMut<B> of a value. Read more§fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref<R>(self, func: impl FnOnce(&R)) -> Self
Immutable access to the
AsRef<R> view of a value. Read more§fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
fn tap_ref_mut<R>(self, func: impl FnOnce(&mut R)) -> Self
Mutable access to the
AsMut<R> view of a value. Read more§fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref<T>(self, func: impl FnOnce(&T)) -> Self
Immutable access to the
Deref::Target of a value. Read more§fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
fn tap_deref_mut<T>(self, func: impl FnOnce(&mut T)) -> Self
Mutable access to the
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
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.§fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
Calls
.tap_borrow() only in debug builds, and is erased in release
builds.§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
Calls
.tap_borrow_mut() only in debug builds, and is erased in release
builds.§fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
fn tap_ref_dbg<R>(self, func: impl FnOnce(&R)) -> Self
Calls
.tap_ref() only in debug builds, and is erased in release
builds.§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
Calls
.tap_ref_mut() only in debug builds, and is erased in release
builds.§fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
fn tap_deref_dbg<T>(self, func: impl FnOnce(&T)) -> Self
Calls
.tap_deref() only in debug builds, and is erased in release
builds.