pub trait IntoExpression {
    type Item;
    type Dim: Dim;
    type Producer: Producer<Item = Self::Item, Dim = Self::Dim>;

    // Required method
    fn into_expr(self) -> Expression<Self::Producer>;
}
Expand description

Conversion trait into an expression.

Required Associated Types§

source

type Item

Array element type.

source

type Dim: Dim

Array dimension type.

source

type Producer: Producer<Item = Self::Item, Dim = Self::Dim>

Which kind of expression producer are we turning this into?

Required Methods§

source

fn into_expr(self) -> Expression<Self::Producer>

Creates an expression from a value.

Implementors§

source§

impl<'a, B: Buffer + ?Sized> IntoExpression for &'a Array<B>

§

type Item = &'a <B as Buffer>::Item

§

type Dim = <B as Buffer>::Dim

§

type Producer = Expr<'a, <B as Buffer>::Item, <B as Buffer>::Dim, <B as Buffer>::Layout>

source§

impl<'a, B: BufferMut + ?Sized> IntoExpression for &'a mut Array<B>

§

type Item = &'a mut <B as Buffer>::Item

§

type Dim = <B as Buffer>::Dim

§

type Producer = ExprMut<'a, <B as Buffer>::Item, <B as Buffer>::Dim, <B as Buffer>::Layout>

source§

impl<'a, T, D: Dim, L: Layout> IntoExpression for Array<ViewBuffer<'a, T, D, L>>

§

type Item = &'a T

§

type Dim = D

§

type Producer = Expr<'a, T, D, L>

source§

impl<'a, T, D: Dim, L: Layout> IntoExpression for Array<ViewBufferMut<'a, T, D, L>>

§

type Item = &'a mut T

§

type Dim = D

§

type Producer = ExprMut<'a, T, D, L>

source§

impl<P: Producer> IntoExpression for Expression<P>

§

type Item = <P as Producer>::Item

§

type Dim = <P as Producer>::Dim

§

type Producer = P

source§

impl<T, D: Dim, A: Allocator> IntoExpression for Array<GridBuffer<T, D, A>>

§

type Item = T

§

type Dim = D

§

type Producer = IntoExpr<T, D, A>