pub enum SliceOrigin<E: CubePrimitive> {
Tensor(Tensor<E>),
Array(Array<E>),
SharedMemory(SharedMemory<E>),
}
Variants§
Implementations§
Source§impl<E: CubePrimitive> SliceOrigin<E>
impl<E: CubePrimitive> SliceOrigin<E>
pub fn new_Tensor(_0: Tensor<E>) -> Self
pub fn __expand_new_Tensor( _: &mut Scope, _0: <Tensor<E> as CubeType>::ExpandType, ) -> SliceOriginExpand<E>
pub fn new_Array(_0: Array<E>) -> Self
pub fn __expand_new_Array( _: &mut Scope, _0: <Array<E> as CubeType>::ExpandType, ) -> SliceOriginExpand<E>
Trait Implementations§
Source§impl<E: CubePrimitive> CubeDebug for SliceOrigin<E>
impl<E: CubePrimitive> CubeDebug for SliceOrigin<E>
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: CubePrimitive> CubeType for SliceOrigin<E>
impl<E: CubePrimitive> CubeType for SliceOrigin<E>
type ExpandType = SliceOriginExpand<E>
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Auto Trait Implementations§
impl<E> Freeze for SliceOrigin<E>
impl<E> RefUnwindSafe for SliceOrigin<E>where
E: RefUnwindSafe,
impl<E> Send for SliceOrigin<E>
impl<E> Sync for SliceOrigin<E>
impl<E> Unpin for SliceOrigin<E>where
E: Unpin,
impl<E> UnwindSafe for SliceOrigin<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