pub trait IndexMutOp<Idx, Val>: TryIndexMutOp<Idx, Val> {
// Provided methods
fn index_mut_device(&mut self, i: Idx, val: Val, stream: impl AsRef<Stream>) { ... }
fn index_mut(&mut self, i: Idx, val: Val) { ... }
}
Expand description
Trait for custom mutable indexing operations.
Provided Methods§
Sourcefn index_mut_device(&mut self, i: Idx, val: Val, stream: impl AsRef<Stream>)
fn index_mut_device(&mut self, i: Idx, val: Val, stream: impl AsRef<Stream>)
Index the array with the given index and set the value.
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.