Skip to main content

AsMutExpand

Trait AsMutExpand 

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

Source

fn __expand_ref_mut_method(&mut self, scope: &Scope) -> &mut T

Provided Methods§

Source

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".

Implementations on Foreign Types§

Source§

impl AsMutExpand for ()

Source§

fn __expand_ref_mut_method(&mut self, _: &Scope) -> &mut Self

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand, T4: AsMutExpand, T5: AsMutExpand, T6: AsMutExpand, T7: AsMutExpand, T8: AsMutExpand, T9: AsMutExpand, T10: AsMutExpand, T11: AsMutExpand> AsMutExpand for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10, T11)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand, T4: AsMutExpand, T5: AsMutExpand, T6: AsMutExpand, T7: AsMutExpand, T8: AsMutExpand, T9: AsMutExpand, T10: AsMutExpand> AsMutExpand for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9, T10)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand, T4: AsMutExpand, T5: AsMutExpand, T6: AsMutExpand, T7: AsMutExpand, T8: AsMutExpand, T9: AsMutExpand> AsMutExpand for (T0, T1, T2, T3, T4, T5, T6, T7, T8, T9)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand, T4: AsMutExpand, T5: AsMutExpand, T6: AsMutExpand, T7: AsMutExpand, T8: AsMutExpand> AsMutExpand for (T0, T1, T2, T3, T4, T5, T6, T7, T8)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand, T4: AsMutExpand, T5: AsMutExpand, T6: AsMutExpand, T7: AsMutExpand> AsMutExpand for (T0, T1, T2, T3, T4, T5, T6, T7)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand, T4: AsMutExpand, T5: AsMutExpand, T6: AsMutExpand> AsMutExpand for (T0, T1, T2, T3, T4, T5, T6)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand, T4: AsMutExpand, T5: AsMutExpand> AsMutExpand for (T0, T1, T2, T3, T4, T5)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand, T4: AsMutExpand> AsMutExpand for (T0, T1, T2, T3, T4)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand, T3: AsMutExpand> AsMutExpand for (T0, T1, T2, T3)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand, T2: AsMutExpand> AsMutExpand for (T0, T1, T2)

Source§

impl<T0: AsMutExpand, T1: AsMutExpand> AsMutExpand for (T0, T1)

Source§

impl<T0: AsMutExpand> AsMutExpand for (T0,)

Source§

fn __expand_ref_mut_method(&mut self, _: &Scope) -> &mut (T0,)

Source§

impl<T: AsMutExpand + ?Sized> AsMutExpand for &T

Source§

fn __expand_ref_mut_method(&mut self, _: &Scope) -> &mut Self

Source§

impl<T: AsMutExpand + ?Sized> AsMutExpand for &mut T

Source§

fn __expand_ref_mut_method(&mut self, _: &Scope) -> &mut Self

Source§

impl<T: AsMutExpand + ?Sized> AsMutExpand for *const T

Source§

fn __expand_ref_mut_method(&mut self, _: &Scope) -> &mut Self

Source§

impl<T: AsMutExpand + ?Sized> AsMutExpand for *mut T

Source§

fn __expand_ref_mut_method(&mut self, _: &Scope) -> &mut Self

Source§

impl<T: AsMutExpand> AsMutExpand for Vec<T>

Source§

fn __expand_ref_mut_method(&mut self, _: &Scope) -> &mut Self

Implementors§

Source§

impl AsMutExpand for Im2colExpand

Source§

impl AsMutExpand for Im2colWideExpand

Source§

impl AsMutExpand for InputScalarExpand

Source§

impl AsMutExpand for MatrixLayout

Source§

impl AsMutExpand for NativeExpand<BarrierToken>

Source§

impl AsMutExpand for OrderingExpand

Source§

impl AsMutExpand for RangeFullExpand

Source§

impl AsMutExpand for TensorMetaExpand

Source§

impl AsMutExpand for TiledExpand

Source§

impl<A: CubeType, B: CubeType, CD: CubeType> AsMutExpand for MmaDefinitionExpand<A, B, CD>

Source§

impl<C: CubeType, S: MatrixScope> AsMutExpand for MatrixExpand<C, S>

Source§

impl<E: CubePrimitive, K: TensorMapKind> AsMutExpand for NativeExpand<TensorMap<E, K>>

Source§

impl<E: CubePrimitive> AsMutExpand for NativeExpand<Box<[E]>>

Source§

impl<E: CubePrimitive> AsMutExpand for SliceExpand<E>

Source§

impl<E> AsMutExpand for NativeExpand<Array<E>>

Source§

impl<Idx: Scalar> AsMutExpand for RangeExpand<Idx>

Source§

impl<Idx: Scalar> AsMutExpand for RangeFromExpand<Idx>

Source§

impl<Idx: Scalar> AsMutExpand for RangeInclusiveExpand<Idx>

Source§

impl<Idx: Scalar> AsMutExpand for RangeToExpand<Idx>

Source§

impl<Idx: Scalar> AsMutExpand for RangeToInclusiveExpand<Idx>

Source§

impl<K, V> AsMutExpand for Registry<K, V>

Source§

impl<T: CubePrimitive> AsMutExpand for NativeExpand<T>

Source§

impl<T: CubePrimitive> AsMutExpand for OwnedTensorExpand<T>

Source§

impl<T: CubePrimitive> AsMutExpand for TensorExpand<T>

Source§

impl<T: CubePrimitive> AsMutExpand for TensorViewBuilderExpand<T>

Source§

impl<T: CubePrimitive> AsMutExpand for TensorViewExpand<T>

Source§

impl<T: CubeType> AsMutExpand for ComptimeCellExpand<T>

Source§

impl<T: CubeType> AsMutExpand for ComptimeOptionExpand<T>

Source§

impl<T: CubeType> AsMutExpand for OptionExpand<T>

Source§

impl<T: CubeType> AsMutExpand for RuntimeCellExpand<T>

Source§

impl<T: CubeType> AsMutExpand for SequenceExpand<T>

Source§

impl<T: NativeCubeType + ?Sized> AsMutExpand for SharedExpand<T>