pub struct RangeExpand<I: Int> {
pub start: ExpandElementTyped<I>,
pub end: ExpandElementTyped<I>,
pub inclusive: bool,
}
Fields§
§start: ExpandElementTyped<I>
§end: ExpandElementTyped<I>
§inclusive: bool
Implementations§
Source§impl<I: Int> RangeExpand<I>
impl<I: Int> RangeExpand<I>
pub fn new( start: ExpandElementTyped<I>, end: ExpandElementTyped<I>, inclusive: bool, ) -> Self
pub fn __expand_step_by_method( self, n: impl Into<ExpandElementTyped<u32>>, ) -> SteppedRangeExpand<I>
Trait Implementations§
Source§impl<I: Int> Iterable<I> for RangeExpand<I>
impl<I: Int> Iterable<I> for RangeExpand<I>
Source§fn expand_unroll(
self,
scope: &mut Scope,
body: impl FnMut(&mut Scope, <I as CubeType>::ExpandType),
)
fn expand_unroll( self, scope: &mut Scope, body: impl FnMut(&mut Scope, <I as CubeType>::ExpandType), )
Expand an unrolled loop. The body should be invoced
n
times, where n
is the number of
iterations. Read moreAuto Trait Implementations§
impl<I> Freeze for RangeExpand<I>
impl<I> RefUnwindSafe for RangeExpand<I>where
I: RefUnwindSafe,
impl<I> !Send for RangeExpand<I>
impl<I> !Sync for RangeExpand<I>
impl<I> Unpin for RangeExpand<I>where
I: Unpin,
impl<I> UnwindSafe for RangeExpand<I>where
I: 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