pub struct ReduceRange {
pub start: u32,
pub end: u32,
pub step: u32,
}
Expand description
A simple range to specify how to iterate a slice when performing a reduction.
Fields§
§start: u32
§end: u32
§step: u32
Trait Implementations§
Source§impl CubeType for ReduceRange
impl CubeType for ReduceRange
type ExpandType = ReduceRangeExpand
Source§fn init(context: &mut CubeContext, expand: Self::ExpandType) -> Self::ExpandType
fn init(context: &mut CubeContext, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl IntoRuntime for ReduceRange
impl IntoRuntime for ReduceRange
fn __expand_runtime_method(self, context: &mut CubeContext) -> Self::ExpandType
Source§fn runtime(self) -> Self
fn runtime(self) -> Self
Make sure a type is actually expanded into its runtime expand type.
Auto Trait Implementations§
impl Freeze for ReduceRange
impl RefUnwindSafe for ReduceRange
impl Send for ReduceRange
impl Sync for ReduceRange
impl Unpin for ReduceRange
impl UnwindSafe for ReduceRange
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