pub struct TwoBodyScattering { /* private fields */ }Expand description
Two-to-two scattering proposal based on a selected incoming/outgoing momentum-transfer pairing.
Implementations§
Source§impl TwoBodyScattering
impl TwoBodyScattering
Sourcepub fn t_exchange(
pairing: (impl Into<String>, impl Into<String>),
distribution: TDistribution,
) -> Self
pub fn t_exchange( pairing: (impl Into<String>, impl Into<String>), distribution: TDistribution, ) -> Self
Construct a t-exchange proposal for the named edge pairing.
Source§impl TwoBodyScattering
impl TwoBodyScattering
Sourcepub fn propose(
&self,
incoming: &[NamedMomentum<'_>],
outgoing: &[NamedMass<'_>],
rng: &mut ProposalRng,
) -> LadduPhysicsResult<ProposalResult>
pub fn propose( &self, incoming: &[NamedMomentum<'_>], outgoing: &[NamedMass<'_>], rng: &mut ProposalRng, ) -> LadduPhysicsResult<ProposalResult>
Propose outgoing two-body scattering kinematics.
§Errors
Returns LadduPhysicsError when the topology or configured edge
pairing is invalid, the event is outside physical phase space, or the
transfer distribution cannot be sampled.
Trait Implementations§
Source§impl Clone for TwoBodyScattering
impl Clone for TwoBodyScattering
Source§fn clone(&self) -> TwoBodyScattering
fn clone(&self) -> TwoBodyScattering
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TwoBodyScattering
impl Debug for TwoBodyScattering
Source§impl<'de> Deserialize<'de> for TwoBodyScattering
impl<'de> Deserialize<'de> for TwoBodyScattering
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<TwoBodyScattering> for VertexProposal
impl From<TwoBodyScattering> for VertexProposal
Source§fn from(proposal: TwoBodyScattering) -> Self
fn from(proposal: TwoBodyScattering) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for TwoBodyScattering
impl RefUnwindSafe for TwoBodyScattering
impl Send for TwoBodyScattering
impl Sync for TwoBodyScattering
impl Unpin for TwoBodyScattering
impl UnsafeUnpin for TwoBodyScattering
impl UnwindSafe for TwoBodyScattering
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.