Skip to main content

AsRefExpand

Trait AsRefExpand 

Source
pub trait AsRefExpand<T: ?Sized = Self> {
    // Required method
    fn __expand_ref_method(&self, scope: &Scope) -> &T;

    // Provided method
    fn __expand_as_ref_method(&self, scope: &Scope) -> &T { ... }
}
Expand description

Expand version of AsRef. Like AsRef<Self> it’s implemented for all ExpandTypes. This is called when the Rust code uses &x.

Required Methods§

Source

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

Provided Methods§

Source

fn __expand_as_ref_method(&self, scope: &Scope) -> &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 AsRefExpand for ()

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: AsRefExpand> AsRefExpand for Vec<T>

Source§

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

Implementors§

Source§

impl AsRefExpand for Im2colExpand

Source§

impl AsRefExpand for Im2colWideExpand

Source§

impl AsRefExpand for InputScalarExpand

Source§

impl AsRefExpand for MatrixLayout

Source§

impl AsRefExpand for OrderingExpand

Source§

impl AsRefExpand for RangeFullExpand

Source§

impl AsRefExpand for TensorMetaExpand

Source§

impl AsRefExpand for TiledExpand

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T: ?Sized> AsRefExpand for NativeExpand<T>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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