pub struct State<S: UserState> {
pub user: S,
/* private fields */
}Expand description
Internal execution state of the solver.
This struct is owned exclusively by the Engine during execution and is not intended to be modified directly by users.
Access to state is provided through StateView.
§Fields
user: user-defined state implementing UserStateruntime: execution metadata (iteration count, duration)convergence: convergence tracking for policies
Fields§
§user: SThe user component of the state implements the application specific code
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<S> Freeze for State<S>
impl<S> RefUnwindSafe for State<S>
impl<S> Send for State<S>
impl<S> Sync for State<S>
impl<S> Unpin for State<S>
impl<S> UnsafeUnpin for State<S>
impl<S> UnwindSafe for State<S>
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