use_reaction/
reaction_direction.rs1use std::fmt;
2
3#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
5pub enum ReactionDirection {
6 Forward,
8 Reverse,
10 Reversible,
12 Equilibrium,
14}
15
16impl fmt::Display for ReactionDirection {
17 fn fmt(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {
18 let value = match self {
19 Self::Forward => "forward",
20 Self::Reverse => "reverse",
21 Self::Reversible => "reversible",
22 Self::Equilibrium => "equilibrium",
23 };
24
25 formatter.write_str(value)
26 }
27}