New set for positive rs

This commit is contained in:
elvis
2025-08-26 23:36:29 +02:00
parent bf2403cdcf
commit 8b0fbcee00
2 changed files with 172 additions and 14 deletions

View File

@ -171,16 +171,6 @@ impl BasicReaction<Set> for Reaction {
}
}
impl Reaction {
pub fn from(reactants: Set, inhibitors: Set, products: Set) -> Self {
Reaction {
reactants,
inhibitors,
products,
}
}
}
impl PrintableWithTranslator for Reaction {
fn print(&self, f: &mut std::fmt::Formatter, translator: &Translator)
-> std::fmt::Result {
@ -193,3 +183,13 @@ impl PrintableWithTranslator for Reaction {
)
}
}
impl Reaction {
pub fn from(reactants: Set, inhibitors: Set, products: Set) -> Self {
Reaction {
reactants,
inhibitors,
products,
}
}
}