pub struct SeCase {
pub network: SeNetwork,
pub buses: Vec<Bus>,
pub measurements: Vec<Measurement>,
pub node_idx: HashMap<u64, usize>,
pub phases: usize,
}Expand description
A network, a starting state and a measurement set, assembled together.
The three have to agree about what a bus index means, which is the whole reason they are built in one place rather than three.
Fields§
§network: SeNetwork§buses: Vec<Bus>The buses, in the layout the network is indexed by. Not an estimate:
a flat start, which linear_start improves on
before the first iteration.
measurements: Vec<Measurement>§node_idx: HashMap<u64, usize>Document node id to node index. In the phase domain a node owns three
buses; use bus_of rather than this directly.
phases: usize1 for the symmetric domain, 3 for the phase domain.
The one thing a caller downstream of this genuinely needs to know, and it
is here so that reporting can say node 7 phase b rather than bus 22.
Implementations§
Auto Trait Implementations§
impl Freeze for SeCase
impl RefUnwindSafe for SeCase
impl Send for SeCase
impl Sync for SeCase
impl Unpin for SeCase
impl UnsafeUnpin for SeCase
impl UnwindSafe for SeCase
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T, U> Imply<T> for U
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more