pub enum SliceOriginExpand<E>where
E: CubePrimitive,{
Tensor(<Tensor<E> as CubeType>::ExpandType),
Array(<Array<E> as CubeType>::ExpandType),
SharedMemory(<SharedMemory<E> as CubeType>::ExpandType),
}Variants§
Tensor(<Tensor<E> as CubeType>::ExpandType)
Array(<Array<E> as CubeType>::ExpandType)
Implementations§
Source§impl<E> SliceOriginExpand<E>where
E: CubePrimitive,
impl<E> SliceOriginExpand<E>where
E: CubePrimitive,
pub fn vector_size(&self) -> usize
Trait Implementations§
Source§impl<E> Clone for SliceOriginExpand<E>where
E: CubePrimitive,
impl<E> Clone for SliceOriginExpand<E>where
E: CubePrimitive,
Source§fn clone(&self) -> SliceOriginExpand<E>
fn clone(&self) -> SliceOriginExpand<E>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<E> CubeDebug for SliceOriginExpand<E>where
E: CubePrimitive,
impl<E> CubeDebug for SliceOriginExpand<E>where
E: CubePrimitive,
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl<E> CubeEnum for SliceOriginExpand<E>where
E: CubePrimitive,
impl<E> CubeEnum for SliceOriginExpand<E>where
E: CubePrimitive,
type RuntimeValue = ()
fn discriminant(&self) -> NativeExpand<i32>
Source§fn runtime_value(self) -> <SliceOriginExpand<E> as CubeEnum>::RuntimeValue
fn runtime_value(self) -> <SliceOriginExpand<E> as CubeEnum>::RuntimeValue
Return the runtime value of this enum, if only one variant has a value.
Should return () for all other cases.
fn discriminant_of(variant_name: &'static str) -> i32
fn discriminant_of_value(&self, variant_name: &'static str) -> i32
Source§impl<E> IntoMut for SliceOriginExpand<E>where
E: CubePrimitive,
impl<E> IntoMut for SliceOriginExpand<E>where
E: CubePrimitive,
Source§fn into_mut(self, scope: &mut Scope) -> SliceOriginExpand<E>
fn into_mut(self, scope: &mut Scope) -> SliceOriginExpand<E>
Convert the variable into a potentially new mutable variable in
scope, copying if needed.Auto Trait Implementations§
impl<E> Freeze for SliceOriginExpand<E>
impl<E> RefUnwindSafe for SliceOriginExpand<E>where
E: RefUnwindSafe,
impl<E> !Send for SliceOriginExpand<E>
impl<E> !Sync for SliceOriginExpand<E>
impl<E> Unpin for SliceOriginExpand<E>where
E: Unpin,
impl<E> UnsafeUnpin for SliceOriginExpand<E>
impl<E> UnwindSafe for SliceOriginExpand<E>where
E: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more