Trait Reactions
pub trait Reactions<Ri>: Intracellular<Ri> {
// Required method
fn calculate_intracellular_increment(
&self,
intracellular: &Ri,
) -> Result<Ri, CalcError>;
}
Expand description
Describes purely intracellular reactions of a cellagent.
In the most simple case, intracellular values can be assumed to have a homogeneous distribution throughout the entire cell. We can then describe them by a list of values $\vec{u}=(u_0,\dots,u_N)$.
Required Methods§
fn calculate_intracellular_increment(
&self,
intracellular: &Ri,
) -> Result<Ri, CalcError>
fn calculate_intracellular_increment( &self, intracellular: &Ri, ) -> Result<Ri, CalcError>
Calculates the purely intracellular reaction increment.
Users who implement this trait should always use the given argument instead of relying on
values obtained via self
.