Trait feroxide::Reaction [] [src]

pub trait Reaction<E: Element>: Properties {
    fn is_valid(&self) -> bool;
    fn equalise(&self) -> bool;
    fn energy_cost(&self) -> Energy;
    fn elem_reaction(&self) -> ElemReaction<E>;
}

Required Methods

Check if the reaction is valid by comparing the amount of total atoms on both sides, and by checking if the total charge on both sides is equal

Balance both sides of the equation to make sure it's valid Returns true if it managed to equalise it, false otherwise

Calculate the cost of this reaction This can be negative in case of an exothermic reaction

Get the ElemReaction version

Implementors