Struct feroxide::RedoxReaction
[−]
[src]
pub struct RedoxReaction<E: Element> { pub reductor: ElemReaction<E>, pub oxidator: ElemReaction<E>, }
A Redox reaction
Fields
reductor: ElemReaction<E>
The reductor
oxidator: ElemReaction<E>
The oxidator
Trait Implementations
impl<E: Debug + Element> Debug for RedoxReaction<E>
[src]
impl<E: Eq + Element> Eq for RedoxReaction<E>
[src]
impl<E: PartialEq + Element> PartialEq for RedoxReaction<E>
[src]
fn eq(&self, __arg_0: &RedoxReaction<E>) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &RedoxReaction<E>) -> bool
[src]
This method tests for !=
.
impl<E: Clone + Element> Clone for RedoxReaction<E>
[src]
fn clone(&self) -> RedoxReaction<E>
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<E: Element> Reaction<E> for RedoxReaction<E>
[src]
fn equalise(&self) -> bool
[src]
Balance both sides of the equation to make sure it's valid Returns true if it managed to equalise it, false otherwise Read more
fn is_valid(&self) -> bool
[src]
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 Read more
fn energy_cost(&self) -> Energy
[src]
Calculate the cost of this reaction This can be negative in case of an exothermic reaction Read more
fn elem_reaction(&self) -> ElemReaction<E>
[src]
Get the ElemReaction version