pub trait MutableDataProvider<T>: DataProvider<T> {
// Required methods
fn view_mut(&mut self) -> CoreResult<SharedArrayViewMut<'_, T>>;
fn apply<F>(&mut self, f: F) -> CoreResult<()>
where F: Fn(&mut T);
fn clear(&mut self);
}Expand description
Trait for components that can provide mutable data access
Required Methods§
Sourcefn view_mut(&mut self) -> CoreResult<SharedArrayViewMut<'_, T>>
fn view_mut(&mut self) -> CoreResult<SharedArrayViewMut<'_, T>>
Get a mutable view of the data
Sourcefn apply<F>(&mut self, f: F) -> CoreResult<()>
fn apply<F>(&mut self, f: F) -> CoreResult<()>
Apply an operation to all elements
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".