pub unsafe trait FnMutWithSig<Sig: FnSig>: FnOnceWithSig<Sig> { }Expand description
Trait implemented by closures that can be invoked mutably with signature Sig.
§Safety
VTABLE_MUT.callmust be a valid trampoline forSelfthat, given a pointer to a properly aligned and initializedSelfwith exclusive (&mut Self) access for the duration of the call, invokesSelfmutably without moving or dropping it.VTABLE_MUT.oncemust satisfy the safety requirements ofFnOnceWithSig::VTABLE_ONCEforSelf.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".