pub struct OuterLoopContext<'a, 'n> {
pub net: &'a mut SolveContext<'n>,
pub islands: &'a [IslandReport],
pub iteration: usize,
}Expand description
The mutable network a loop is allowed to act on, plus the last solve’s result.
powsybl passes a network object here; gridoxide has none — the
parallel-Vec convention is crate-wide — so this bundle of borrows is the
honest translation.
Fields§
§net: &'a mut SolveContext<'n>§islands: &'a [IslandReport]The islands the last inner solve reported. Never empty when a loop’s
check is called: the driver stops before that if the solve did not
settle.
iteration: usizeHow many times this loop has already reported Unstable.
Auto Trait Implementations§
impl<'a, 'n> !UnwindSafe for OuterLoopContext<'a, 'n>
impl<'a, 'n> Freeze for OuterLoopContext<'a, 'n>
impl<'a, 'n> RefUnwindSafe for OuterLoopContext<'a, 'n>
impl<'a, 'n> Send for OuterLoopContext<'a, 'n>
impl<'a, 'n> Sync for OuterLoopContext<'a, 'n>
impl<'a, 'n> Unpin for OuterLoopContext<'a, 'n>
impl<'a, 'n> UnsafeUnpin for OuterLoopContext<'a, 'n>
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