Skip to main content

AsRefExpand

Trait AsRefExpand 

Source
pub trait AsRefExpand<T = Self>
where T: ?Sized,
{ // 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§

impl AsRefExpand for ComptimeEventBusExpand

Source§

impl AsRefExpand for DynamicRankStridedLayoutExpand

Source§

impl AsRefExpand for KnownScaleExpand

Source§

impl AsRefExpand for LinearViewLayoutExpand

Source§

impl AsRefExpand for PermutedLayoutExpand

Source§

impl AsRefExpand for PlainLayoutExpand

Source§

impl AsRefExpand for SimpleLayoutExpand

Source§

impl AsRefExpand for StridedLayoutExpand

Source§

impl AsRefExpand for SwizzleExpand

Source§

impl AsRefExpand for TiledLayoutExpand

Source§

impl AsRefExpand for TiledViewLayoutExpand

Source§

impl<'a, E, C> AsRefExpand for ViewExpand<'a, E, C>

Source§

fn __expand_ref_method(&self, _: &Scope) -> &ViewExpand<'a, E, C>

Source§

impl<'a, E, C> AsRefExpand for ViewMutExpand<'a, E, C>

Source§

fn __expand_ref_method(&self, _: &Scope) -> &ViewMutExpand<'a, E, C>

Source§

impl<'a, Q, NQ, S, F, NF, C> AsRefExpand for QuantizedViewExpand<'a, Q, NQ, S, F, NF, C>
where Q: Scalar, NQ: Size, S: Scalar, F: Numeric, NF: Size, C: Coordinates + 'static,

Source§

fn __expand_ref_method( &self, _: &Scope, ) -> &QuantizedViewExpand<'a, Q, NQ, S, F, NF, C>

Source§

impl<'a, S, T> AsRefExpand for ReinterpretSliceExpand<'a, S, T>

Source§

impl<'a, S, T> AsRefExpand for ReinterpretSliceMutExpand<'a, S, T>

Source§

impl<C, S> AsRefExpand for VirtualLayoutExpand<C, S>
where C: Coordinates, S: Coordinates,

Source§

impl<C> AsRefExpand for SliceLayoutExpand<C>
where C: Coordinates,

Source§

impl<D> AsRefExpand for FixedDimLayoutExpand<D>
where D: IntoDyn,

Source§

impl<E, IO> AsRefExpand for ErasedTensorExpand<E, IO>
where E: Numeric,

Source§

impl<E, N, IO> AsRefExpand for VirtualTensorExpand<E, N, IO>
where E: Numeric, N: Size, IO: Clone,

Source§

impl<I> AsRefExpand for FastDivmodExpand<I>
where I: FastDivmodInt,

Source§

impl<L0, L1> AsRefExpand for ChainExpand<L0, L1>
where L0: Layout, L1: Layout<SourceCoordinates = <L0 as Layout>::Coordinates>,

Source§

fn __expand_ref_method(&self, _: &Scope) -> &ChainExpand<L0, L1>

Source§

impl<L, P, O> AsRefExpand for IntoDyn2LayoutExpand<L, P, O>
where L: Layout<SourceCoordinates = (P, O)> + ViewLayoutLaunchArg, P: IntoDyn, O: IntoDyn,

Source§

impl<L> AsRefExpand for ConcreteLayoutExpand<L>

Source§

impl<L> AsRefExpand for IntoDynLayoutExpand<L>

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

impl<T, C, S, V> AsRefExpand for VirtualViewExpand<T, C, S, V>

Source§

fn __expand_ref_method(&self, _: &Scope) -> &VirtualViewExpand<T, C, S, V>

Source§

impl<T, C, S, V> AsRefExpand for VirtualViewMutExpand<T, C, S, V>

Source§

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

Source§

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

Source§

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

Source§

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

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, B, CD> AsRefExpand for MmaDefinitionExpand<A, B, CD>
where A: CubeType, B: CubeType, CD: CubeType,

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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