pub struct IterExpand<'a, E: CubePrimitive> { /* private fields */ }Expand description
The expand half of Iter.
Trait Implementations§
Source§impl<E: CubePrimitive> IndexedIteratorExpand for IterExpand<'_, E>
impl<E: CubePrimitive> IndexedIteratorExpand for IterExpand<'_, E>
Source§fn __expand_len_method(&self, scope: &Scope) -> NativeExpand<usize>
fn __expand_len_method(&self, scope: &Scope) -> NativeExpand<usize>
Source§fn get(&mut self, scope: &Scope, index: NativeExpand<usize>) -> Self::Item
fn get(&mut self, scope: &Scope, index: NativeExpand<usize>) -> Self::Item
The item at
index, which must be less than the length.Source§fn __expand_zip_method<U>(
self,
scope: &Scope,
other: IterArg<U>,
) -> ZipExpand<Self, U::IntoIter>where
U: IntoIteratorExpand,
fn __expand_zip_method<U>(
self,
scope: &Scope,
other: IterArg<U>,
) -> ZipExpand<Self, U::IntoIter>where
U: IntoIteratorExpand,
See
Iterator::zip.Source§fn __expand_enumerate_method(self, _scope: &Scope) -> EnumerateExpand<Self>
fn __expand_enumerate_method(self, _scope: &Scope) -> EnumerateExpand<Self>
See
Iterator::enumerate.Source§fn __expand_rev_method(self, _scope: &Scope) -> RevExpand<Self>
fn __expand_rev_method(self, _scope: &Scope) -> RevExpand<Self>
See
Iterator::rev.Source§fn __expand_take_method(
self,
_scope: &Scope,
n: NativeExpand<usize>,
) -> TakeExpand<Self>
fn __expand_take_method( self, _scope: &Scope, n: NativeExpand<usize>, ) -> TakeExpand<Self>
See
Iterator::take.Source§fn __expand_skip_method(
self,
_scope: &Scope,
n: NativeExpand<usize>,
) -> SkipExpand<Self>
fn __expand_skip_method( self, _scope: &Scope, n: NativeExpand<usize>, ) -> SkipExpand<Self>
See
Iterator::skip.Source§impl<'a, E: CubePrimitive> Iterable for IterExpand<'a, E>
impl<'a, E: CubePrimitive> Iterable for IterExpand<'a, E>
type Item = &'a NativeExpand<E>
Source§fn expand(self, scope: &Scope, body: &mut dyn FnMut(&Scope, Self::Item))
fn expand(self, scope: &Scope, body: &mut dyn FnMut(&Scope, Self::Item))
Expand a runtime loop without unrolling Read more
Source§impl<'a, E: CubePrimitive> IteratorExpand for IterExpand<'a, E>
impl<'a, E: CubePrimitive> IteratorExpand for IterExpand<'a, E>
Source§fn __expand_map_method<B, F>(self, _scope: &Scope, f: F) -> MapExpand<Self, F>
fn __expand_map_method<B, F>(self, _scope: &Scope, f: F) -> MapExpand<Self, F>
See
Iterator::map.Source§fn __expand_filter_method<P>(
self,
_scope: &Scope,
predicate: P,
) -> FilterExpand<Self, P>
fn __expand_filter_method<P>( self, _scope: &Scope, predicate: P, ) -> FilterExpand<Self, P>
See
Iterator::filter.Source§fn __expand_copied_method<'a, T>(self, _scope: &Scope) -> CopiedExpand<Self>
fn __expand_copied_method<'a, T>(self, _scope: &Scope) -> CopiedExpand<Self>
See
Iterator::copied.Source§fn __expand_for_each_method<F>(self, scope: &Scope, f: F)
fn __expand_for_each_method<F>(self, scope: &Scope, f: F)
See
Iterator::for_each.Source§fn __expand_fold_method<B, F>(
self,
scope: &Scope,
init: IterArg<B>,
f: F,
) -> B::Expand
fn __expand_fold_method<B, F>( self, scope: &Scope, init: IterArg<B>, f: F, ) -> B::Expand
See
Iterator::fold.Source§fn __expand_sum_method<S>(self, scope: &Scope) -> NativeExpand<S>
fn __expand_sum_method<S>(self, scope: &Scope) -> NativeExpand<S>
See
Iterator::sum. Read moreSource§fn __expand_product_method<P>(self, scope: &Scope) -> NativeExpand<P>
fn __expand_product_method<P>(self, scope: &Scope) -> NativeExpand<P>
Source§fn __expand_count_method(self, scope: &Scope) -> NativeExpand<usize>
fn __expand_count_method(self, scope: &Scope) -> NativeExpand<usize>
See
Iterator::count.Source§fn __expand_any_method<F>(self, scope: &Scope, f: F) -> NativeExpand<bool>
fn __expand_any_method<F>(self, scope: &Scope, f: F) -> NativeExpand<bool>
See
Iterator::any. Stops at the first match.Source§fn __expand_all_method<F>(self, scope: &Scope, f: F) -> NativeExpand<bool>
fn __expand_all_method<F>(self, scope: &Scope, f: F) -> NativeExpand<bool>
See
Iterator::all. Stops at the first item that doesn’t match.Auto Trait Implementations§
impl<'a, E> !RefUnwindSafe for IterExpand<'a, E>
impl<'a, E> !UnwindSafe for IterExpand<'a, E>
impl<'a, E> Forget for IterExpand<'a, E>
impl<'a, E> Freeze for IterExpand<'a, E>
impl<'a, E> Send for IterExpand<'a, E>
impl<'a, E> Sync for IterExpand<'a, E>
impl<'a, E> Unpin for IterExpand<'a, E>
impl<'a, E> UnsafeUnpin for IterExpand<'a, E>
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Converts
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Converts
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Converts
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Converts
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more