pub struct StateStore {
pub voltage_magnitude: Vec<f64>,
pub voltage_angle: Vec<f64>,
pub active_power: Vec<f64>,
pub reactive_power: Vec<f64>,
}Expand description
Central storage for simulation state.
Uses contiguous Vec<f64> arrays for cache-friendly access
and efficient parallel computation.
Fields§
§voltage_magnitude: Vec<f64>Voltage magnitudes (per-unit)
voltage_angle: Vec<f64>Voltage angles (radians)
active_power: Vec<f64>Active power injection (MW)
reactive_power: Vec<f64>Reactive power injection (MVAr)
Implementations§
Trait Implementations§
Source§impl Clone for StateStore
impl Clone for StateStore
Source§fn clone(&self) -> StateStore
fn clone(&self) -> StateStore
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for StateStore
impl Debug for StateStore
Auto Trait Implementations§
impl Freeze for StateStore
impl RefUnwindSafe for StateStore
impl Send for StateStore
impl Sync for StateStore
impl Unpin for StateStore
impl UnwindSafe for StateStore
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)