pub struct SequenceExpand<T: CubeType> { /* private fields */ }
Expand description
Expand type of Sequence.
Implementations§
Source§impl<T: CubeType> SequenceExpand<T>
impl<T: CubeType> SequenceExpand<T>
Sourcepub fn __expand_push_method(
&mut self,
_context: &mut CubeContext,
value: T::ExpandType,
)
pub fn __expand_push_method( &mut self, _context: &mut CubeContext, value: T::ExpandType, )
Expand method of push.
Sourcepub fn __expand_insert_method(
&self,
_context: &mut CubeContext,
index: ExpandElementTyped<u32>,
value: T::ExpandType,
)
pub fn __expand_insert_method( &self, _context: &mut CubeContext, index: ExpandElementTyped<u32>, value: T::ExpandType, )
Expand method of insert.
Sourcepub fn __expand_index_method(
&self,
_context: &mut CubeContext,
index: ExpandElementTyped<u32>,
) -> T::ExpandType
pub fn __expand_index_method( &self, _context: &mut CubeContext, index: ExpandElementTyped<u32>, ) -> T::ExpandType
Expand method of index.
Sourcepub fn __expand_index_mut_method(
&self,
_context: &mut CubeContext,
index: ExpandElementTyped<u32>,
) -> T::ExpandType
pub fn __expand_index_mut_method( &self, _context: &mut CubeContext, index: ExpandElementTyped<u32>, ) -> T::ExpandType
Expand method of index_mut.
pub fn __expand_len_method(&self, _context: &mut CubeContext) -> u32
Trait Implementations§
Source§impl<T: CubeType> Clone for SequenceExpand<T>
impl<T: CubeType> Clone for SequenceExpand<T>
Source§impl<T: CubeType> Init for SequenceExpand<T>
impl<T: CubeType> Init for SequenceExpand<T>
Source§impl<T: CubeType> IntoIterator for SequenceExpand<T>
impl<T: CubeType> IntoIterator for SequenceExpand<T>
Source§type Item = <T as CubeType>::ExpandType
type Item = <T as CubeType>::ExpandType
The type of the elements being iterated over.
Source§type IntoIter = <Vec<<T as CubeType>::ExpandType> as IntoIterator>::IntoIter
type IntoIter = <Vec<<T as CubeType>::ExpandType> as IntoIterator>::IntoIter
Which kind of iterator are we turning this into?
Source§impl<T: CubeType> Iterable<T> for SequenceExpand<T>
impl<T: CubeType> Iterable<T> for SequenceExpand<T>
Source§fn expand(
self,
context: &mut CubeContext,
func: impl FnMut(&mut CubeContext, <T as CubeType>::ExpandType),
)
fn expand( self, context: &mut CubeContext, func: impl FnMut(&mut CubeContext, <T as CubeType>::ExpandType), )
Expand a runtime loop without unrolling Read more
Source§fn expand_unroll(
self,
context: &mut CubeContext,
func: impl FnMut(&mut CubeContext, <T as CubeType>::ExpandType),
)
fn expand_unroll( self, context: &mut CubeContext, func: impl FnMut(&mut CubeContext, <T 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<T> Freeze for SequenceExpand<T>
impl<T> !RefUnwindSafe for SequenceExpand<T>
impl<T> !Send for SequenceExpand<T>
impl<T> !Sync for SequenceExpand<T>
impl<T> Unpin for SequenceExpand<T>
impl<T> !UnwindSafe for SequenceExpand<T>
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