[−][src]Trait shalc::calculation::Calculation
Associated Types
type LocalCalcs: Sized
Calculations which is not sending to somewhere. It can be modified everywhere inside calculation.
Required methods
fn local_calcs(&self, prev_local_calcs: &mut Option<Self::LocalCalcs>) -> State
Calculations, that can be made when this calculation are shared and immutable.
This method is used for updating LocalCalcs, which can be used to update mutable self in
update()
method.
fn update(&mut self, local_calcs: &mut Option<Self::LocalCalcs>) -> State
Method to update self. When it is called, self is not shared and, thats why, mutable.