RelocateFnMut

Trait RelocateFnMut 

Source
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§

Source

fn call_mut(&mut self) -> T

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.

Implementors§

Source§

impl<T, D> RelocateFnMut<T> for Closure<T, D>
where D: ThreadAware,

Source§

impl<T, D> RelocateFnMut<T> for ClosureMut<T, D>
where D: ThreadAware,