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 iter_cloned(&self) -> impl Iterator<Item = T::ExpandType>
 
pub fn iter_cloned(&self) -> impl Iterator<Item = T::ExpandType>
Provides an iterator without modifying the sequence
Source§impl<T: CubeType> SequenceExpand<T>
 
impl<T: CubeType> SequenceExpand<T>
pub fn len(&self) -> u32
Sourcepub fn __expand_push_method(&mut self, _scope: &mut Scope, value: T::ExpandType)
 
pub fn __expand_push_method(&mut self, _scope: &mut Scope, value: T::ExpandType)
Expand method of push.
Sourcepub fn __expand_insert_method(
    &self,
    _scope: &mut Scope,
    index: ExpandElementTyped<u32>,
    value: T::ExpandType,
)
 
pub fn __expand_insert_method( &self, _scope: &mut Scope, index: ExpandElementTyped<u32>, value: T::ExpandType, )
Expand method of insert.
Sourcepub fn __expand_index_method(
    &self,
    _scope: &mut Scope,
    index: ExpandElementTyped<u32>,
) -> T::ExpandType
 
pub fn __expand_index_method( &self, _scope: &mut Scope, index: ExpandElementTyped<u32>, ) -> T::ExpandType
Expand method of index.
Sourcepub fn __expand_index_mut_method(
    &self,
    _scope: &mut Scope,
    index: ExpandElementTyped<u32>,
) -> T::ExpandType
 
pub fn __expand_index_mut_method( &self, _scope: &mut Scope, index: ExpandElementTyped<u32>, ) -> T::ExpandType
Expand method of index_mut.
pub fn __expand_len_method(&self, _scope: &mut Scope) -> u32
pub fn __expand_rev_method(self, _scope: &mut Scope) -> Self
pub fn __expand_clone_method(&self, _scope: &mut Scope) -> Self
Trait Implementations§
Source§impl<T: CubeType> Clone for SequenceExpand<T>
 
impl<T: CubeType> Clone for SequenceExpand<T>
Source§impl<T: CubeType> CubeDebug for SequenceExpand<T>
 
impl<T: CubeType> CubeDebug for SequenceExpand<T>
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<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> IntoMut for SequenceExpand<T>
 
impl<T: CubeType> IntoMut for SequenceExpand<T>
Source§impl<T: CubeType> Iterable<T> for SequenceExpand<T>
 
impl<T: CubeType> Iterable<T> for SequenceExpand<T>
Source§fn expand(
    self,
    scope: &mut Scope,
    func: impl FnMut(&mut Scope, <T as CubeType>::ExpandType),
)
 
fn expand( self, scope: &mut Scope, func: impl FnMut(&mut Scope, <T as CubeType>::ExpandType), )
Expand a runtime loop without unrolling Read more
Source§fn expand_unroll(
    self,
    scope: &mut Scope,
    func: impl FnMut(&mut Scope, <T as CubeType>::ExpandType),
)
 
fn expand_unroll( self, scope: &mut Scope, func: impl FnMut(&mut Scope, <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