pub trait AsMutExpand<T: ?Sized = Self> {
// Required method
fn __expand_ref_mut_method(&mut self, scope: &Scope) -> &mut T;
// Provided method
fn __expand_as_mut_method(&mut self, scope: &Scope) -> &mut T { ... }
}Expand description
Expand version of AsMut. The Self version must be implemented by
all ExpandTypes, since CubeCL also uses it to implement &mut x.
Required Methods§
fn __expand_ref_mut_method(&mut self, scope: &Scope) -> &mut T
Provided Methods§
fn __expand_as_mut_method(&mut self, scope: &Scope) -> &mut T
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".