pub struct MutableFunction<F>(/* private fields */);Expand description
Sequential adapter for a mutable, fallible in-place right-hand side.
Construct with OdeProblem::new_fallible.
The adapter owns the interior mutability required by the existing shared
problem solve interface; callers can capture ordinary mutable references.
It is Send when F is Send, but is deliberately not Sync.
Use independent problems per worker, or the reusable stepper for direct
exclusive closure access without interior mutability.
Implementations§
Source§impl<F> MutableFunction<F>
impl<F> MutableFunction<F>
Sourcepub fn into_inner(self) -> F
pub fn into_inner(self) -> F
Returns the closure, including any accumulated mutable state.
Trait Implementations§
Source§impl<F, P> OdeFunction<P> for MutableFunction<F>
impl<F, P> OdeFunction<P> for MutableFunction<F>
Auto Trait Implementations§
impl<F> !Freeze for MutableFunction<F>
impl<F> !RefUnwindSafe for MutableFunction<F>
impl<F> !Sync for MutableFunction<F>
impl<F> Forget for MutableFunction<F>
impl<F> Move for MutableFunction<F>
impl<F> Send for MutableFunction<F>
impl<F> Unpin for MutableFunction<F>
impl<F> UnsafeUnpin for MutableFunction<F>where
RefCell<F>: UnsafeUnpin,
impl<F> UnwindSafe for MutableFunction<F>where
RefCell<F>: UnwindSafe,
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
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