pub trait GridElement: Send + Sync {
// Required methods
fn element_type(&self) -> &'static str;
fn apply(&self, state: &mut StateStore);
}Expand description
Trait for grid elements (buses, branches, generators, loads)
Required Methods§
Sourcefn element_type(&self) -> &'static str
fn element_type(&self) -> &'static str
Element type name for debugging
Sourcefn apply(&self, state: &mut StateStore)
fn apply(&self, state: &mut StateStore)
Apply element’s contribution to the state