Skip to main content

EdgeHandle

Struct EdgeHandle 

Source
pub struct EdgeHandle<'a> { /* private fields */ }
Expand description

Mutable builder handle for an Edge in a channel.

Implementations§

Source§

impl EdgeHandle<'_>

Source

pub fn edge_mut(&mut self) -> &mut Edge

Mutable access to the underlying Edge.

Source

pub fn p4(&mut self, p4: impl Into<Vec4>) -> &mut Self

Assign an explicit symbolic four-momentum.

Source

pub fn properties(&mut self, properties: &ParticleProperties) -> &mut Self

Attach particle properties.

Source

pub fn output(&mut self) -> &mut Self

Retain this edge in generated event output.

Source

pub fn generated_only(&mut self) -> &mut Self

Use this edge internally during generation without retaining it.

Source

pub fn mass_proposal(&mut self, proposal: impl Into<MassProposal>) -> &mut Self

Assign a generated invariant-mass proposal.

Source

pub fn initial(&mut self, source: InitialMomentum) -> &mut Self

Assign an initial-state momentum source.

Source

pub fn initial_p4(&mut self, p4: RealVec4) -> &mut Self

Assign a fixed initial-state four-momentum in (E, px, py, pz) order.

Source

pub fn initial_momentum(&mut self, momentum: RealVec3) -> &mut Self

Assign a fixed initial-state three-momentum.

Source

pub fn initial_energy_direction( &mut self, energy: f64, direction: RealVec3, ) -> &mut Self

Assign a fixed energy and direction for an initial-state edge.

Source

pub fn initial_energy_source_direction( &mut self, energy: ScalarSource, direction: RealVec3, ) -> &mut Self

Assign a sampled energy source and fixed direction for an initial-state edge.

Auto Trait Implementations§

§

impl<'a> !UnwindSafe for EdgeHandle<'a>

§

impl<'a> Freeze for EdgeHandle<'a>

§

impl<'a> RefUnwindSafe for EdgeHandle<'a>

§

impl<'a> Send for EdgeHandle<'a>

§

impl<'a> Sync for EdgeHandle<'a>

§

impl<'a> Unpin for EdgeHandle<'a>

§

impl<'a> UnsafeUnpin for EdgeHandle<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

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

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.