#[repr(C)]pub struct AffinePoint { /* private fields */ }
Implementations§
Source§impl Secp256k1Point
impl Secp256k1Point
pub fn x_be_bytes(&self) -> [u8; 32]
pub fn y_be_bytes(&self) -> [u8; 32]
Trait Implementations§
Source§impl Add<&Secp256k1Point> for &Secp256k1Point
impl Add<&Secp256k1Point> for &Secp256k1Point
Source§type Output = Secp256k1Point
type Output = Secp256k1Point
The resulting type after applying the
+
operator.Source§impl Add<&Secp256k1Point> for Secp256k1Point
impl Add<&Secp256k1Point> for Secp256k1Point
Source§type Output = Secp256k1Point
type Output = Secp256k1Point
The resulting type after applying the
+
operator.Source§impl Add for Secp256k1Point
impl Add for Secp256k1Point
Source§impl AddAssign<&Secp256k1Point> for Secp256k1Point
impl AddAssign<&Secp256k1Point> for Secp256k1Point
Source§fn add_assign(&mut self, p2: &Secp256k1Point)
fn add_assign(&mut self, p2: &Secp256k1Point)
Performs the
+=
operation. Read moreSource§impl AddAssign for Secp256k1Point
impl AddAssign for Secp256k1Point
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
Performs the
+=
operation. Read moreSource§impl AffineCoordinates for Secp256k1Point
impl AffineCoordinates for Secp256k1Point
Source§impl Clone for Secp256k1Point
impl Clone for Secp256k1Point
Source§fn clone(&self) -> Secp256k1Point
fn clone(&self) -> Secp256k1Point
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 moreSource§impl ConditionallySelectable for Secp256k1Point
impl ConditionallySelectable for Secp256k1Point
Source§fn conditional_select(
a: &Secp256k1Point,
b: &Secp256k1Point,
choice: Choice,
) -> Secp256k1Point
fn conditional_select( a: &Secp256k1Point, b: &Secp256k1Point, choice: Choice, ) -> Secp256k1Point
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 moreSource§impl ConstantTimeEq for Secp256k1Point
impl ConstantTimeEq for Secp256k1Point
Source§impl Curve for Secp256k1Point
impl Curve for Secp256k1Point
Source§type AffineRepr = Secp256k1Point
type AffineRepr = Secp256k1Point
The affine representation for this elliptic curve.
Source§fn to_affine(&self) -> Secp256k1Point
fn to_affine(&self) -> Secp256k1Point
Converts this element into its affine representation.
Source§fn batch_normalize(p: &[Self], q: &mut [Self::AffineRepr])
fn batch_normalize(p: &[Self], q: &mut [Self::AffineRepr])
Converts a batch of projective elements into affine elements. This function will
panic if
p.len() != q.len()
.Source§impl CyclicGroup for Secp256k1Point
impl CyclicGroup for Secp256k1Point
Source§impl Debug for Secp256k1Point
impl Debug for Secp256k1Point
Source§impl DecompactPoint<Secp256k1> for Secp256k1Point
impl DecompactPoint<Secp256k1> for Secp256k1Point
Source§impl DecompressPoint<Secp256k1> for Secp256k1Point
impl DecompressPoint<Secp256k1> for Secp256k1Point
Source§fn decompress(
x_bytes: &FieldBytes<Secp256k1>,
y_is_odd: Choice,
) -> CtOption<Self>
fn decompress( x_bytes: &FieldBytes<Secp256k1>, y_is_odd: Choice, ) -> CtOption<Self>
Note that this is not constant time
Source§impl Default for Secp256k1Point
impl Default for Secp256k1Point
Source§impl<'de> Deserialize<'de> for Secp256k1Point
impl<'de> Deserialize<'de> for Secp256k1Point
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&Secp256k1Point> for EncodedPoint
impl From<&Secp256k1Point> for EncodedPoint
Source§fn from(affine_point: &Secp256k1Point) -> EncodedPoint
fn from(affine_point: &Secp256k1Point) -> EncodedPoint
Converts to this type from the input type.
Source§impl From<Secp256k1Point> for EncodedPoint
impl From<Secp256k1Point> for EncodedPoint
Source§fn from(affine_point: Secp256k1Point) -> EncodedPoint
fn from(affine_point: Secp256k1Point) -> EncodedPoint
Converts to this type from the input type.
Source§impl FromCompressed<Secp256k1Coord> for Secp256k1Point
impl FromCompressed<Secp256k1Coord> for Secp256k1Point
Source§fn decompress(x: Secp256k1Coord, rec_id: &u8) -> Option<Self>
fn decompress(x: Secp256k1Coord, rec_id: &u8) -> Option<Self>
Given
x
-coordinate, Read moreSource§impl FromEncodedPoint<Secp256k1> for Secp256k1Point
impl FromEncodedPoint<Secp256k1> for Secp256k1Point
Source§fn from_encoded_point(encoded_point: &EncodedPoint) -> CtOption<Self>
fn from_encoded_point(encoded_point: &EncodedPoint) -> CtOption<Self>
Attempts to parse the given EncodedPoint
as an SEC1-encoded Secp256k1Point
.
§Returns
None
value if encoded_point
is not on the secp256k1 curve.
Source§impl Group for Secp256k1Point
impl Group for Secp256k1Point
Source§impl Group for Secp256k1Point
impl Group for Secp256k1Point
Source§type Scalar = Secp256k1Scalar
type Scalar = Secp256k1Scalar
Scalars modulo the order of this group’s scalar field.
Source§fn random(_rng: impl RngCore) -> Self
fn random(_rng: impl RngCore) -> Self
Returns an element chosen uniformly at random from the non-identity elements of
this group. Read more
Source§fn is_identity(&self) -> Choice
fn is_identity(&self) -> Choice
Determines if this point is the identity.
Source§impl LinearCombination for Secp256k1Point
impl LinearCombination for Secp256k1Point
Source§impl Mul<&Secp256k1Scalar> for &Secp256k1Point
impl Mul<&Secp256k1Scalar> for &Secp256k1Point
Source§type Output = Secp256k1Point
type Output = Secp256k1Point
The resulting type after applying the
*
operator.Source§fn mul(self, other: &Secp256k1Scalar) -> Secp256k1Point
fn mul(self, other: &Secp256k1Scalar) -> Secp256k1Point
Performs the
*
operation. Read moreSource§impl Mul<&Secp256k1Scalar> for Secp256k1Point
impl Mul<&Secp256k1Scalar> for Secp256k1Point
Source§type Output = Secp256k1Point
type Output = Secp256k1Point
The resulting type after applying the
*
operator.Source§fn mul(self, other: &Secp256k1Scalar) -> Secp256k1Point
fn mul(self, other: &Secp256k1Scalar) -> Secp256k1Point
Performs the
*
operation. Read moreSource§impl Mul<Secp256k1Scalar> for Secp256k1Point
impl Mul<Secp256k1Scalar> for Secp256k1Point
Source§type Output = Secp256k1Point
type Output = Secp256k1Point
The resulting type after applying the
*
operator.Source§fn mul(self, other: Secp256k1Scalar) -> Secp256k1Point
fn mul(self, other: Secp256k1Scalar) -> Secp256k1Point
Performs the
*
operation. Read moreSource§impl MulAssign<&Secp256k1Scalar> for Secp256k1Point
impl MulAssign<&Secp256k1Scalar> for Secp256k1Point
Source§fn mul_assign(&mut self, rhs: &Secp256k1Scalar)
fn mul_assign(&mut self, rhs: &Secp256k1Scalar)
Performs the
*=
operation. Read moreSource§impl MulAssign<Secp256k1Scalar> for Secp256k1Point
impl MulAssign<Secp256k1Scalar> for Secp256k1Point
Source§fn mul_assign(&mut self, rhs: Secp256k1Scalar)
fn mul_assign(&mut self, rhs: Secp256k1Scalar)
Performs the
*=
operation. Read moreSource§impl MulByGenerator for Secp256k1Point
impl MulByGenerator for Secp256k1Point
Source§fn mul_by_generator(scalar: &Self::Scalar) -> Self
fn mul_by_generator(scalar: &Self::Scalar) -> Self
Multiply by the generator of the prime-order subgroup.
Source§impl Neg for &Secp256k1Point
impl Neg for &Secp256k1Point
Source§type Output = Secp256k1Point
type Output = Secp256k1Point
The resulting type after applying the
-
operator.Source§fn neg(self) -> Secp256k1Point
fn neg(self) -> Secp256k1Point
Performs the unary
-
operation. Read moreSource§impl Neg for Secp256k1Point
impl Neg for Secp256k1Point
Source§impl PartialEq for Secp256k1Point
impl PartialEq for Secp256k1Point
Source§impl Serialize for Secp256k1Point
impl Serialize for Secp256k1Point
Source§impl Sub<&Secp256k1Point> for &Secp256k1Point
impl Sub<&Secp256k1Point> for &Secp256k1Point
Source§type Output = Secp256k1Point
type Output = Secp256k1Point
The resulting type after applying the
-
operator.Source§impl Sub<&Secp256k1Point> for Secp256k1Point
impl Sub<&Secp256k1Point> for Secp256k1Point
Source§type Output = Secp256k1Point
type Output = Secp256k1Point
The resulting type after applying the
-
operator.Source§impl Sub for Secp256k1Point
impl Sub for Secp256k1Point
Source§impl SubAssign<&Secp256k1Point> for Secp256k1Point
impl SubAssign<&Secp256k1Point> for Secp256k1Point
Source§fn sub_assign(&mut self, p2: &Secp256k1Point)
fn sub_assign(&mut self, p2: &Secp256k1Point)
Performs the
-=
operation. Read moreSource§impl SubAssign for Secp256k1Point
impl SubAssign for Secp256k1Point
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
Performs the
-=
operation. Read moreSource§impl<'a> Sum<&'a Secp256k1Point> for Secp256k1Point
impl<'a> Sum<&'a Secp256k1Point> for Secp256k1Point
Source§fn sum<I: Iterator<Item = &'a Secp256k1Point>>(iter: I) -> Self
fn sum<I: Iterator<Item = &'a Secp256k1Point>>(iter: I) -> Self
Takes an iterator and generates
Self
from the elements by “summing up”
the items.Source§impl Sum for Secp256k1Point
impl Sum for Secp256k1Point
Source§impl ToEncodedPoint<Secp256k1> for Secp256k1Point
impl ToEncodedPoint<Secp256k1> for Secp256k1Point
Source§fn to_encoded_point(&self, compress: bool) -> EncodedPoint
fn to_encoded_point(&self, compress: bool) -> EncodedPoint
Serialize this value as a SEC1
EncodedPoint
, optionally applying
point compression.Source§impl TryFrom<&EncodedPoint<<Secp256k1 as Curve>::FieldBytesSize>> for Secp256k1Point
impl TryFrom<&EncodedPoint<<Secp256k1 as Curve>::FieldBytesSize>> for Secp256k1Point
Source§fn try_from(point: &EncodedPoint) -> Result<Secp256k1Point>
fn try_from(point: &EncodedPoint) -> Result<Secp256k1Point>
Performs the conversion.
Source§impl TryFrom<EncodedPoint<<Secp256k1 as Curve>::FieldBytesSize>> for Secp256k1Point
impl TryFrom<EncodedPoint<<Secp256k1 as Curve>::FieldBytesSize>> for Secp256k1Point
Source§fn try_from(point: EncodedPoint) -> Result<Secp256k1Point>
fn try_from(point: EncodedPoint) -> Result<Secp256k1Point>
Performs the conversion.
Source§impl VerifyCustomHook<Secp256k1> for Secp256k1Point
impl VerifyCustomHook<Secp256k1> for Secp256k1Point
Source§fn verify_hook(&self, _z: &[u8], sig: &Signature) -> Result<()>
fn verify_hook(&self, _z: &[u8], sig: &Signature) -> Result<()>
This is NOT the full ECDSA signature verification algorithm. The implementer should only
add additional verification logic not contained in verify_prehashed. The default
implementation does nothing. Read more
Source§impl VerifyPrimitive<Secp256k1> for Secp256k1Point
impl VerifyPrimitive<Secp256k1> for Secp256k1Point
Source§fn verify_prehashed(
&self,
z: &FieldBytes<Secp256k1>,
sig: &Signature,
) -> Result<(), Error>
fn verify_prehashed( &self, z: &FieldBytes<Secp256k1>, sig: &Signature, ) -> Result<(), Error>
Verify the prehashed message against the provided ECDSA signature. Read more
Source§impl WeierstrassPoint for Secp256k1Point
impl WeierstrassPoint for Secp256k1Point
Source§fn as_le_bytes(&self) -> &[u8] ⓘ
fn as_le_bytes(&self) -> &[u8] ⓘ
SAFETY: assumes that #intmod_type has a memory representation such that with repr(C), two coordinates are packed contiguously.
Source§const CURVE_A: Secp256k1Coord = <Secp256k1Coord as openvm_algebra_guest::IntMod>::ZERO
const CURVE_A: Secp256k1Coord = <Secp256k1Coord as openvm_algebra_guest::IntMod>::ZERO
The
a
coefficient in the Weierstrass curve equation y^2 = x^3 + a x + b
.Source§const CURVE_B: Secp256k1Coord = CURVE_B
const CURVE_B: Secp256k1Coord = CURVE_B
The
b
coefficient in the Weierstrass curve equation y^2 = x^3 + a x + b
.const IDENTITY: Self
type Coordinate = Secp256k1Coord
Source§fn from_xy_unchecked(x: Self::Coordinate, y: Self::Coordinate) -> Self
fn from_xy_unchecked(x: Self::Coordinate, y: Self::Coordinate) -> Self
Raw constructor without asserting point is on the curve.
fn x(&self) -> &Self::Coordinate
fn y(&self) -> &Self::Coordinate
fn x_mut(&mut self) -> &mut Self::Coordinate
fn y_mut(&mut self) -> &mut Self::Coordinate
fn into_coords(self) -> (Self::Coordinate, Self::Coordinate)
Source§fn set_up_once()
fn set_up_once()
Calls any setup required for this curve. The implementation should internally use
OnceBool
to ensure that setup is only called once.Source§fn add_assign_impl<const CHECK_SETUP: bool>(&mut self, p2: &Self)
fn add_assign_impl<const CHECK_SETUP: bool>(&mut self, p2: &Self)
Add implementation that handles identity and whether points are equal or not. Read more
Source§fn double_assign_impl<const CHECK_SETUP: bool>(&mut self)
fn double_assign_impl<const CHECK_SETUP: bool>(&mut self)
Double implementation that handles identity. Read more
Source§unsafe fn add_ne_nonidentity<const CHECK_SETUP: bool>(&self, p2: &Self) -> Self
unsafe fn add_ne_nonidentity<const CHECK_SETUP: bool>(&self, p2: &Self) -> Self
Safety Read more
Source§unsafe fn add_ne_assign_nonidentity<const CHECK_SETUP: bool>(
&mut self,
p2: &Self,
)
unsafe fn add_ne_assign_nonidentity<const CHECK_SETUP: bool>( &mut self, p2: &Self, )
Safety Read more
Source§unsafe fn sub_ne_nonidentity<const CHECK_SETUP: bool>(&self, p2: &Self) -> Self
unsafe fn sub_ne_nonidentity<const CHECK_SETUP: bool>(&self, p2: &Self) -> Self
Safety Read more
Source§unsafe fn sub_ne_assign_nonidentity<const CHECK_SETUP: bool>(
&mut self,
p2: &Self,
)
unsafe fn sub_ne_assign_nonidentity<const CHECK_SETUP: bool>( &mut self, p2: &Self, )
Safety Read more
Source§unsafe fn double_nonidentity<const CHECK_SETUP: bool>(&self) -> Self
unsafe fn double_nonidentity<const CHECK_SETUP: bool>(&self) -> Self
Safety Read more
Source§unsafe fn double_assign_nonidentity<const CHECK_SETUP: bool>(&mut self)
unsafe fn double_assign_nonidentity<const CHECK_SETUP: bool>(&mut self)
Safety Read more
fn from_xy(x: Self::Coordinate, y: Self::Coordinate) -> Option<Self>
fn from_xy_nonidentity(x: Self::Coordinate, y: Self::Coordinate) -> Option<Self>
impl Copy for Secp256k1Point
impl DefaultIsZeroes for Secp256k1Point
impl Eq for Secp256k1Point
impl StructuralPartialEq for Secp256k1Point
Auto Trait Implementations§
impl Freeze for Secp256k1Point
impl RefUnwindSafe for Secp256k1Point
impl Send for Secp256k1Point
impl Sync for Secp256k1Point
impl Unpin for Secp256k1Point
impl UnwindSafe for Secp256k1Point
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)
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
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,
Causes
self
to use its UpperHex
implementation when
Debug
-formatted.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 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,
Pipes by value. This is generally the method you want to use. Read more
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,
Borrows
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,
Mutably borrows
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
Borrows
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
Mutably borrows
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
Borrows
self
, then passes self.deref()
into the pipe function.Source§impl<T> Pointable for T
impl<T> Pointable for T
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Immutable access to the
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
Mutable access to the
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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.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
Calls
.tap_deref()
only in debug builds, and is erased in release
builds.