pub struct DecayProduct<'pdg> {
pub name: String,
pub is_outgoing: bool,
pub multiplier: i64,
/* private fields */
}Expand description
Decay product listed for a branching-fraction row.
Fields§
§name: StringPDG item name for the product.
is_outgoing: boolWhether this product is outgoing from the decay.
multiplier: i64Multiplicity of this product in the decay row.
Implementations§
Source§impl<'pdg> DecayProduct<'pdg>
impl<'pdg> DecayProduct<'pdg>
Sourcepub fn item(&self) -> PdgResult<Option<PdgItem<'pdg>>>
pub fn item(&self) -> PdgResult<Option<PdgItem<'pdg>>>
Loads the PDG item for this decay product.
§Errors
Returns a database error if the item query fails.
Sourcepub fn particle(&self) -> PdgResult<Option<PdgParticle<'pdg>>>
pub fn particle(&self) -> PdgResult<Option<PdgParticle<'pdg>>>
Loads the particle for this decay product, when it names a particle.
§Errors
Returns a database error if the particle query fails.
Trait Implementations§
Source§impl<'pdg> Clone for DecayProduct<'pdg>
impl<'pdg> Clone for DecayProduct<'pdg>
Source§fn clone(&self) -> DecayProduct<'pdg>
fn clone(&self) -> DecayProduct<'pdg>
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 moreAuto Trait Implementations§
impl<'pdg> !RefUnwindSafe for DecayProduct<'pdg>
impl<'pdg> !Send for DecayProduct<'pdg>
impl<'pdg> !Sync for DecayProduct<'pdg>
impl<'pdg> !UnwindSafe for DecayProduct<'pdg>
impl<'pdg> Freeze for DecayProduct<'pdg>
impl<'pdg> Unpin for DecayProduct<'pdg>
impl<'pdg> UnsafeUnpin for DecayProduct<'pdg>
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