pub struct FourMomentum<T> {
pub temporal: Energy<T>,
pub spatial: ThreeMomentum<T>,
}Expand description
A contravariant four-momentum (E, px, py, pz) with mostly-minus metric.
Fields§
§temporal: Energy<T>Temporal component.
spatial: ThreeMomentum<T>Cartesian spatial component.
Implementations§
Source§impl<T> FourMomentum<T>
impl<T> FourMomentum<T>
Sourcepub const fn new(temporal: Energy<T>, spatial: ThreeMomentum<T>) -> Self
pub const fn new(temporal: Energy<T>, spatial: ThreeMomentum<T>) -> Self
Construct a four-momentum from temporal and spatial components.
Sourcepub const fn from_args(energy: T, px: T, py: T, pz: T) -> Self
pub const fn from_args(energy: T, px: T, py: T, pz: T) -> Self
Construct a four-momentum from (E, px, py, pz).
Sourcepub fn map<U>(self, map: impl FnMut(T) -> U) -> FourMomentum<U>
pub fn map<U>(self, map: impl FnMut(T) -> U) -> FourMomentum<U>
Transform the momentum’s scalar type.
Sourcepub fn map_ref<U>(&self, map: impl FnMut(&T) -> U) -> FourMomentum<U>
pub fn map_ref<U>(&self, map: impl FnMut(&T) -> U) -> FourMomentum<U>
Transform borrowed components into another scalar type.
Sourcepub fn components(&self) -> [&T; 4]
pub fn components(&self) -> [&T; 4]
Borrow the components in (E, px, py, pz) order.
Source§impl<T: FloatLike> FourMomentum<T>
impl<T: FloatLike> FourMomentum<T>
Source§impl<T: KinematicScalar> FourMomentum<T>
impl<T: KinematicScalar> FourMomentum<T>
Sourcepub fn flux(&self, other: Option<&Self>) -> T
pub fn flux(&self, other: Option<&Self>) -> T
Initial-state denominator: 2 E for decay or invariant scattering flux.
The one-particle value is frame dependent. Two future-directed on-shell
momenta give 4 sqrt((p1.p2)^2 - p1^2 p2^2). Unit conversion, averages
and phase-space symmetry factors are not included.
Sourcepub fn pt_squared(&self) -> T
pub fn pt_squared(&self) -> T
Compute transverse momentum squared.
Sourcepub fn pseudorapidity(&self) -> T
pub fn pseudorapidity(&self) -> T
Compute pseudorapidity from the spatial momentum.
Sourcepub fn rapidity(&self) -> T
pub fn rapidity(&self) -> T
Compute rapidity, using a finite sentinel for a massless beam-axis momentum.
Source§impl<T: KinematicScalar> FourMomentum<T>
impl<T: KinematicScalar> FourMomentum<T>
Sourcepub fn transverse_basis(&self) -> [[T; 4]; 2]
pub fn transverse_basis(&self) -> [[T; 4]; 2]
GammaLoop’s two real transverse basis vectors, in (E,x,y,z) order.
The beam-axis branches and phases are inherited from its HELAS/MadGraph implementation. This basis also fixes the convention at zero momentum.
Sourcepub fn helicity_spinor(&self, helicity: Sign) -> [Complex<T>; 2]
pub fn helicity_spinor(&self, helicity: Sign) -> [Complex<T>; 2]
The two-component helicity spinor used by both u and v.
Sourcepub fn spinor_energy_factor(&self, sign: Sign) -> Complex<T>
pub fn spinor_energy_factor(&self, sign: Sign) -> Complex<T>
GammaLoop’s principal square root of E ± |p|.
Sourcepub fn wavefunction(
&self,
kind: WavefunctionKind,
helicity: Helicity,
) -> Result<Wavefunction<T>, WavefunctionError>
pub fn wavefunction( &self, kind: WavefunctionKind, helicity: Helicity, ) -> Result<Wavefunction<T>, WavefunctionError>
Construct one fixed external state, without averaging or summing helicities.
Vectors use signature +---. Fermions use GammaLoop’s chiral gamma-matrix
basis and MadGraph phases, including the negative-z axis limit. All states
are four-dimensional; keep the internal regulator dimension separately.
Longitudinal states require positive mass squared. At zero spatial
momentum the longitudinal state is HELAS’s rest-frame (0,0,0,1), the
|p| -> 0 limit of the moving state for momentum along +z.
Sourcepub fn wavefunction_after_rotations(
&self,
kind: WavefunctionKind,
helicity: Helicity,
rotations: &[Rotation<T>],
) -> Result<Wavefunction<T>, WavefunctionError>
pub fn wavefunction_after_rotations( &self, kind: WavefunctionKind, helicity: Helicity, rotations: &[Rotation<T>], ) -> Result<Wavefunction<T>, WavefunctionError>
The external state of this momentum after active rotations of its event.
rotations were applied to the event in order and self is the rotated
momentum. The result is the state of the unrotated momentum transformed
by each rotation, so a state at rest keeps its rotated quantization axis.
For a moving state it differs from Self::wavefunction of the rotated
momentum only by a phase.
Source§impl FourMomentum<Atom>
impl FourMomentum<Atom>
Sourcepub fn weyl_matrix(&self) -> [[Atom; 2]; 2]
pub fn weyl_matrix(&self) -> [[Atom; 2]; 2]
The Weyl matrix [[E+pz, px-i py], [px+i py, E-pz]].
Its determinant is the mostly-minus invariant p.p. Components are
exact Symbolica expressions, suitable for precision-generic evaluators.
Sourcepub fn null_weyl_spinors(
&self,
pivot: [usize; 2],
) -> Result<[[Atom; 2]; 2], SymbolicKinematicsError>
pub fn null_weyl_spinors( &self, pivot: [usize; 2], ) -> Result<[[Atom; 2]; 2], SymbolicKinematicsError>
Factor a nonzero null momentum into angle and square Weyl components.
Returns [angle, square], where weyl_matrix()[i][j] equals
angle[i] * square[j] on p.p = 0. The angle is the selected column;
the square is the selected row divided by its pivot. This fixes the
reciprocal rescaling freedom without introducing a square-root branch.
The caller must select a nonzero entry [row, column] at evaluation
time and supply a null momentum. Selection can use primal values while
numerical evaluation retains all precision and Dual components. A chart
is valid only where its pivot remains nonzero. This method rejects an
out-of-range or identically zero pivot; it does not infer assumptions
about symbolic components or test the on-shell relation.
Sourcepub fn from_weyl_spinors(angle: &[Atom; 2], square: &[Atom; 2]) -> Self
pub fn from_weyl_spinors(angle: &[Atom; 2], square: &[Atom; 2]) -> Self
Construct the complex null momentum whose Weyl matrix is angle ⊗ square.
Mixing the angle of one null momentum with the square of another gives
a null vector orthogonal to both. No conjugation is applied: the two
spinors are independent complex components. This is the convention
p = 1/2 <angle | gamma | square] with (E, px, py, pz) ordering.
Trait Implementations§
Source§impl<T> Add for FourMomentum<T>where
T: Add<Output = T>,
impl<T> Add for FourMomentum<T>where
T: Add<Output = T>,
Source§impl<T> Add<&FourMomentum<T>> for FourMomentum<T>
impl<T> Add<&FourMomentum<T>> for FourMomentum<T>
Source§impl<T> AddAssign for FourMomentum<T>where
T: AddAssign,
impl<T> AddAssign for FourMomentum<T>where
T: AddAssign,
Source§fn add_assign(&mut self, rhs: Self)
fn add_assign(&mut self, rhs: Self)
+= operation. Read moreSource§impl<T: Clone> Clone for FourMomentum<T>
impl<T: Clone> Clone for FourMomentum<T>
Source§fn clone(&self) -> FourMomentum<T>
fn clone(&self) -> FourMomentum<T>
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl<T: Copy> Copy for FourMomentum<T>
Source§impl<T: Debug> Debug for FourMomentum<T>
impl<T: Debug> Debug for FourMomentum<T>
Source§impl<T: Default> Default for FourMomentum<T>
impl<T: Default> Default for FourMomentum<T>
Source§fn default() -> FourMomentum<T>
fn default() -> FourMomentum<T>
Source§impl<'de, T> Deserialize<'de> for FourMomentum<T>where
T: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for FourMomentum<T>where
T: Deserialize<'de>,
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>,
Source§impl<T: Display> Display for FourMomentum<T>
impl<T: Display> Display for FourMomentum<T>
impl<T: Eq> Eq for FourMomentum<T>
Source§impl<T> From<(T, T, T, T)> for FourMomentum<T>
impl<T> From<(T, T, T, T)> for FourMomentum<T>
Source§fn from((energy, px, py, pz): (T, T, T, T)) -> Self
fn from((energy, px, py, pz): (T, T, T, T)) -> Self
Source§impl<T> From<FourMomentum<T>> for [T; 4]
impl<T> From<FourMomentum<T>> for [T; 4]
Source§fn from(momentum: FourMomentum<T>) -> Self
fn from(momentum: FourMomentum<T>) -> Self
Source§impl<T> From<FourMomentum<T>> for (T, T, T, T)
impl<T> From<FourMomentum<T>> for (T, T, T, T)
Source§fn from(momentum: FourMomentum<T>) -> Self
fn from(momentum: FourMomentum<T>) -> Self
Source§impl<T> From<[T; 4]> for FourMomentum<T>
impl<T> From<[T; 4]> for FourMomentum<T>
Source§impl<T: Hash> Hash for FourMomentum<T>
impl<T: Hash> Hash for FourMomentum<T>
Source§impl<T> IntoIterator for FourMomentum<T>
impl<T> IntoIterator for FourMomentum<T>
Source§impl<'a, T> IntoIterator for &'a FourMomentum<T>
impl<'a, T> IntoIterator for &'a FourMomentum<T>
Source§impl<T: LowerExp> LowerExp for FourMomentum<T>
impl<T: LowerExp> LowerExp for FourMomentum<T>
Source§impl<T> Mul<T> for FourMomentum<T>
impl<T> Mul<T> for FourMomentum<T>
Source§impl<T> Neg for FourMomentum<T>where
T: Neg<Output = T>,
impl<T> Neg for FourMomentum<T>where
T: Neg<Output = T>,
Source§impl<T> Neg for &FourMomentum<T>
impl<T> Neg for &FourMomentum<T>
Source§impl<T: PartialEq> PartialEq for FourMomentum<T>
impl<T: PartialEq> PartialEq for FourMomentum<T>
Source§fn eq(&self, other: &FourMomentum<T>) -> bool
fn eq(&self, other: &FourMomentum<T>) -> bool
self and other values to be equal, and is used by ==.Source§impl<T> Serialize for FourMomentum<T>where
T: Serialize,
impl<T> Serialize for FourMomentum<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for FourMomentum<T>
Source§impl<T> Sub for FourMomentum<T>where
T: Sub<Output = T>,
impl<T> Sub for FourMomentum<T>where
T: Sub<Output = T>,
Source§impl<T> SubAssign for FourMomentum<T>where
T: SubAssign,
impl<T> SubAssign for FourMomentum<T>where
T: SubAssign,
Source§fn sub_assign(&mut self, rhs: Self)
fn sub_assign(&mut self, rhs: Self)
-= operation. Read moreAuto Trait Implementations§
impl<T> Freeze for FourMomentum<T>where
T: Freeze,
impl<T> RefUnwindSafe for FourMomentum<T>where
T: RefUnwindSafe,
impl<T> Send for FourMomentum<T>where
T: Send,
impl<T> Sync for FourMomentum<T>where
T: Sync,
impl<T> Unpin for FourMomentum<T>where
T: Unpin,
impl<T> UnsafeUnpin for FourMomentum<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for FourMomentum<T>where
T: UnwindSafe,
Blanket Implementations§
§impl<T> AtomComponentOptimizable<()> for T
impl<T> AtomComponentOptimizable<()> for T
fn optimize_atom_components(self) -> T
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T, Right> ClosedAdd<Right> for T
impl<T, Right> ClosedAddAssign<Right> for Twhere
T: ClosedAdd<Right> + AddAssign<Right>,
impl<T> ClosedNeg for Twhere
T: Neg<Output = T>,
impl<T, Right> ClosedSub<Right> for T
impl<T, Right> ClosedSubAssign<Right> for Twhere
T: ClosedSub<Right> + SubAssign<Right>,
§impl<T> Conv for T
impl<T> Conv for T
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§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> 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>
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 more§impl<T> IntoRecords for T
impl<T> IntoRecords for T
§type Cell = <<T as IntoIterator>::Item as IntoIterator>::Item
type Cell = <<T as IntoIterator>::Item as IntoIterator>::Item
§type IterColumns = <T as IntoIterator>::Item
type IterColumns = <T as IntoIterator>::Item
§type IterRows = <T as IntoIterator>::IntoIter
type IterRows = <T as IntoIterator>::IntoIter
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
§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) -> 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
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
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
self, then passes self.deref() into the pipe function.§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T, O> RefNeg for T
impl<T, O> RefNeg for T
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<T> StrictAs for T
impl<T> StrictAs for T
Source§fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
fn strict_as<Dst>(self) -> Dstwhere
T: StrictCast<Dst>,
Source§impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
impl<Src, Dst> StrictCastFrom<Src> for Dstwhere
Src: StrictCast<Dst>,
Source§fn strict_cast_from(src: Src) -> Dst
fn strict_cast_from(src: Src) -> Dst
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.§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
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
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
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
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
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
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)) -> Self
fn tap_borrow_dbg<B>(self, func: impl FnOnce(&B)) -> Self
.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
.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
.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
.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
.tap_deref() only in debug builds, and is erased in release
builds.