pub trait RelocateFnMut<T>: ThreadAware {
// Required method
fn call_mut(&mut self) -> T;
}Expand description
A trait for callable types that can be called mutably. This trait is used to define closures that can be called mutably, allowing the closure to modify its internal state.
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.