pub struct SequenceExpand<T>where
T: CubeType,{ /* private fields */ }Expand description
Expand type of Sequence.
Implementations§
Source§impl<T> SequenceExpand<T>where
T: CubeType,
impl<T> SequenceExpand<T>where
T: CubeType,
Sourcepub fn iter_cloned(&self) -> impl Iterator<Item = <T as CubeType>::ExpandType>
pub fn iter_cloned(&self) -> impl Iterator<Item = <T as CubeType>::ExpandType>
Provides an iterator without modifying the sequence
Source§impl<T> SequenceExpand<T>where
T: CubeType,
impl<T> SequenceExpand<T>where
T: CubeType,
pub fn len(&self) -> usize
Sourcepub fn __expand_push_method(
&mut self,
_scope: &mut Scope,
value: <T as CubeType>::ExpandType,
)
pub fn __expand_push_method( &mut self, _scope: &mut Scope, value: <T as CubeType>::ExpandType, )
Expand method of push.
Sourcepub fn __expand_insert_method(
&self,
_scope: &mut Scope,
index: usize,
value: <T as CubeType>::ExpandType,
)
pub fn __expand_insert_method( &self, _scope: &mut Scope, index: usize, value: <T as CubeType>::ExpandType, )
Expand method of insert.
Sourcepub fn __expand_index_method(
&self,
_scope: &mut Scope,
index: usize,
) -> <T as CubeType>::ExpandType
pub fn __expand_index_method( &self, _scope: &mut Scope, index: usize, ) -> <T as CubeType>::ExpandType
Expand method of index.
Sourcepub fn __expand_index_mut_method(
&self,
_scope: &mut Scope,
index: usize,
) -> <T as CubeType>::ExpandType
pub fn __expand_index_mut_method( &self, _scope: &mut Scope, index: usize, ) -> <T as CubeType>::ExpandType
Expand method of index_mut.
pub fn __expand_len_method(&self, _scope: &mut Scope) -> usize
pub fn __expand_rev_method(self, _scope: &mut Scope) -> SequenceExpand<T>
pub fn __expand_clone_method(&self, _scope: &mut Scope) -> SequenceExpand<T>
Trait Implementations§
Source§impl<T> Clone for SequenceExpand<T>where
T: CubeType,
impl<T> Clone for SequenceExpand<T>where
T: CubeType,
Source§fn clone(&self) -> SequenceExpand<T>
fn clone(&self) -> SequenceExpand<T>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<T> CubeDebug for SequenceExpand<T>where
T: CubeType,
impl<T> CubeDebug for SequenceExpand<T>where
T: CubeType,
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> CubeIndexExpand for SequenceExpand<T>where
T: CubeType,
impl<T> CubeIndexExpand for SequenceExpand<T>where
T: CubeType,
type Output = <T as CubeType>::ExpandType
type Idx = NativeExpand<usize>
fn expand_index( self, scope: &mut Scope, index: <SequenceExpand<T> as CubeIndexExpand>::Idx, ) -> <SequenceExpand<T> as CubeIndexExpand>::Output
fn expand_index_unchecked( self, scope: &mut Scope, index: <SequenceExpand<T> as CubeIndexExpand>::Idx, ) -> <SequenceExpand<T> as CubeIndexExpand>::Output
Source§impl IntoDynExpand for SequenceExpand<i32>
impl IntoDynExpand for SequenceExpand<i32>
fn __expand_into_dyn_method( self, scope: &mut Scope, ) -> <Sequence<i32> as CubeType>::ExpandType
Source§impl IntoDynExpand for SequenceExpand<u32>
impl IntoDynExpand for SequenceExpand<u32>
fn __expand_into_dyn_method( self, scope: &mut Scope, ) -> <Sequence<i32> as CubeType>::ExpandType
Source§impl<T> IntoIterator for SequenceExpand<T>where
T: CubeType,
impl<T> IntoIterator for SequenceExpand<T>where
T: CubeType,
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§fn into_iter(self) -> <SequenceExpand<T> as IntoIterator>::IntoIter
fn into_iter(self) -> <SequenceExpand<T> as IntoIterator>::IntoIter
Creates an iterator from a value. Read more
Source§impl<T> IntoMut for SequenceExpand<T>where
T: CubeType,
impl<T> IntoMut for SequenceExpand<T>where
T: CubeType,
Source§fn into_mut(self, scope: &mut Scope) -> SequenceExpand<T>
fn into_mut(self, scope: &mut Scope) -> SequenceExpand<T>
Convert the variable into a potentially new mutable variable in
scope, copying if needed.Source§impl<T> Iterable<T> for SequenceExpand<T>where
T: CubeType,
impl<T> Iterable<T> for SequenceExpand<T>where
T: CubeType,
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> UnsafeUnpin 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