Skip to content

Projection

Defined in: state.rs:60

pub enum Projection {
Unchanged,
Changed,
}

Whether OdeState::project modified the state.

The state was left exactly as it was; a cached derivative taken at the unprojected state is still valid.


The state was modified; any derivative cached at the unprojected state must be discarded.


fn or(self, other: Projection) -> Projection

Combine the results of projecting the parts of a composite state: Changed if either part changed.


fn changed(self) -> bool

Whether the projection modified the state.