#[non_exhaustive]pub struct GridfmTables {
pub bus: RecordBatch,
pub generator: RecordBatch,
pub branch: RecordBatch,
pub y_bus: Option<RecordBatch>,
}Expand description
The gridfm-datakit tables as Arrow record batches. The Parquet writer builds from these; a deferred gridfm-schema Arrow C Data Interface export (issue #38) would reuse them. (The raw network Arrow export that ships in powerio-capi is a different, lighter schema.)
For a scenario batch the tables are row-stacked: each table holds the rows of
every snapshot back-to-back, keyed by the scenario column (0-based dense bus
indices and generator/branch idx reset per scenario).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.bus: RecordBatch§generator: RecordBatch§branch: RecordBatch§y_bus: Option<RecordBatch>None when GridfmOptions::include_y_bus is off — the table isn’t
built (graphkit reconstructs admittances from the branch table anyway).
Trait Implementations§
Source§impl Clone for GridfmTables
impl Clone for GridfmTables
Source§fn clone(&self) -> GridfmTables
fn clone(&self) -> GridfmTables
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for GridfmTables
impl !RefUnwindSafe for GridfmTables
impl Send for GridfmTables
impl Sync for GridfmTables
impl Unpin for GridfmTables
impl UnsafeUnpin for GridfmTables
impl !UnwindSafe for GridfmTables
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more