pub struct UserIterateGuard { /* private fields */ }Expand description
The materialised iterate of the user’s problem (full n, full m,
original g order), and its window. Defined in
pounce_nlp::live_iterate so the decorators that lift it one layer
per intermediate_callback forward — presolve’s above all — can reach
it; re-exported here, where callers have always found it.
The active-set SQP arm installs one at every fire. The interior-point
arm installs one when the TNLP asks for it
(pounce_nlp::tnlp::TNLP::wants_current_iterate), built by
ipm_user_iterate.
Installs a UserIterate for the duration of one callback fire and
restores whatever was installed before on drop, so a decorator can
shadow the iterate with its lifted one while it forwards the callback.
Implementations§
Source§impl UserIterateGuard
impl UserIterateGuard
pub fn install(it: UserIterate) -> UserIterateGuard
Trait Implementations§
Source§impl Drop for UserIterateGuard
impl Drop for UserIterateGuard
Auto Trait Implementations§
impl Freeze for UserIterateGuard
impl RefUnwindSafe for UserIterateGuard
impl Send for UserIterateGuard
impl Sync for UserIterateGuard
impl Unpin for UserIterateGuard
impl UnsafeUnpin for UserIterateGuard
impl UnwindSafe for UserIterateGuard
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<T, U> Imply<T> for U
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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