[][src]Struct weld::ast::Iter

pub struct Iter {
    pub data: Box<Expr>,
    pub start: Option<Box<Expr>>,
    pub end: Option<Box<Expr>>,
    pub stride: Option<Box<Expr>>,
    pub kind: IterKind,
    pub strides: Option<Box<Expr>>,
    pub shape: Option<Box<Expr>>,
}

An iterator, which specifies a vector to iterate over and optionally a start index, end index, and stride.

Fields

data: Box<Expr>start: Option<Box<Expr>>end: Option<Box<Expr>>stride: Option<Box<Expr>>kind: IterKindstrides: Option<Box<Expr>>shape: Option<Box<Expr>>

Methods

impl Iter[src]

pub fn is_simple(&self) -> bool[src]

Returns true if this is a simple iterator.

An iterator is simple if it has no start/stride/end specified (i.e., it iterates over all the input data) and kind ScalarIter.

Trait Implementations

impl Clone for Iter[src]

impl Debug for Iter[src]

impl Eq for Iter[src]

impl Hash for Iter[src]

impl PartialEq<Iter> for Iter[src]

impl StructuralEq for Iter[src]

impl StructuralPartialEq for Iter[src]

Auto Trait Implementations

impl !RefUnwindSafe for Iter

impl !Send for Iter

impl !Sync for Iter

impl Unpin for Iter

impl UnwindSafe for Iter

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.