Skip to main content

ReversibleEdge

Trait ReversibleEdge 

Source
pub trait ReversibleEdge {
    // Required methods
    fn pdg(&self, model: &Model) -> isize;
    fn spin(&self, model: &Model) -> Option<i64>;

    // Provided methods
    fn pol_symbol(&self, model: &Model, flow: Flow) -> Option<Symbol> { ... }
    fn polarization<'a, T, H>(
        &self,
        model: &Model,
        add_args: &'a [T],
        hedge_data: &H,
        flow: Flow,
    ) -> Atom
       where &'a T: Into<AtomOrView<'a>>,
             H: HedgePolarizationData { ... }
    fn polarization_structure<'a, T, H>(
        &self,
        model: &Model,
        add_args: &'a [T],
        hedge_data: &H,
        flow: Flow,
    ) -> Option<Canonicalized<ShadowedStructure<Aind>>>
       where &'a T: Into<AtomOrView<'a>>,
             H: HedgePolarizationData { ... }
}

Required Methods§

Source

fn pdg(&self, model: &Model) -> isize

Source

fn spin(&self, model: &Model) -> Option<i64>

Provided Methods§

Source

fn pol_symbol(&self, model: &Model, flow: Flow) -> Option<Symbol>

Source

fn polarization<'a, T, H>( &self, model: &Model, add_args: &'a [T], hedge_data: &H, flow: Flow, ) -> Atom
where &'a T: Into<AtomOrView<'a>>, H: HedgePolarizationData,

Source

fn polarization_structure<'a, T, H>( &self, model: &Model, add_args: &'a [T], hedge_data: &H, flow: Flow, ) -> Option<Canonicalized<ShadowedStructure<Aind>>>
where &'a T: Into<AtomOrView<'a>>, H: HedgePolarizationData,

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl ReversibleEdge for EdgeData<&Edge>

Source§

fn pdg(&self, model: &Model) -> isize

Source§

fn spin(&self, model: &Model) -> Option<i64>

Source§

impl ReversibleEdge for EdgeData<&ParseEdge>

Source§

fn pdg(&self, model: &Model) -> isize

Source§

fn spin(&self, model: &Model) -> Option<i64>

Source§

impl ReversibleEdge for EdgeData<(usize, isize)>

Source§

fn pdg(&self, _model: &Model) -> isize

Source§

fn spin(&self, _model: &Model) -> Option<i64>

Source§

impl ReversibleEdge for EdgeData<ParticleId>

Source§

fn pdg(&self, model: &Model) -> isize

Source§

fn spin(&self, model: &Model) -> Option<i64>

Implementors§