pub trait SynchronizedUpdate {
// Required method
fn sync_update<T>(
&mut self,
operations: impl FnOnce(&mut Self) -> T,
) -> Result<T>;
}Expand description
An interface for types that support synchronized updates.
Required Methods§
Sourcefn sync_update<T>(
&mut self,
operations: impl FnOnce(&mut Self) -> T,
) -> Result<T>
fn sync_update<T>( &mut self, operations: impl FnOnce(&mut Self) -> T, ) -> Result<T>
Performs a set of actions against the given type.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".