Trait IntoExpression

Source
pub trait IntoExpression: IntoIterator {
    type Shape: Shape;
    type IntoExpr: Expression<Item = Self::Item, Shape = Self::Shape>;

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

Conversion trait into an expression.

Required Associated Types§

Source

type Shape: Shape

Array shape type.

Source

type IntoExpr: Expression<Item = Self::Item, Shape = Self::Shape>

Which kind of expression are we turning this into?

Required Methods§

Source

fn into_expr(self) -> Self::IntoExpr

Creates an expression from a value.

Implementors§

Source§

impl<'a, B: Buffer> IntoExpression for &'a IntoExpr<B>

Source§

type Shape = <B as Buffer>::Shape

Source§

type IntoExpr = Expr<'a, <B as Buffer>::Item, <B as Buffer>::Shape>

Source§

impl<'a, B: Buffer> IntoExpression for &'a mut IntoExpr<B>

Source§

type Shape = <B as Buffer>::Shape

Source§

type IntoExpr = ExprMut<'a, <B as Buffer>::Item, <B as Buffer>::Shape>

Source§

impl<'a, T, S: ConstShape> IntoExpression for &'a Array<T, S>

Source§

type Shape = S

Source§

type IntoExpr = Expr<'a, T, S>

Source§

impl<'a, T, S: ConstShape> IntoExpression for &'a mut Array<T, S>

Source§

type Shape = S

Source§

type IntoExpr = ExprMut<'a, T, S>

Source§

impl<'a, T, S: Shape, A: Allocator> IntoExpression for &'a Grid<T, S, A>

Source§

type Shape = S

Source§

type IntoExpr = Expr<'a, T, S>

Source§

impl<'a, T, S: Shape, A: Allocator> IntoExpression for &'a mut Grid<T, S, A>

Source§

type Shape = S

Source§

type IntoExpr = ExprMut<'a, T, S>

Source§

impl<'a, T, S: Shape, L: Layout> IntoExpression for &'a Expr<'_, T, S, L>

Source§

type Shape = S

Source§

type IntoExpr = Expr<'a, T, S, L>

Source§

impl<'a, T, S: Shape, L: Layout> IntoExpression for &'a ExprMut<'_, T, S, L>

Source§

type Shape = S

Source§

type IntoExpr = Expr<'a, T, S, L>

Source§

impl<'a, T, S: Shape, L: Layout> IntoExpression for &'a Span<T, S, L>

Source§

type Shape = S

Source§

type IntoExpr = Expr<'a, T, S, L>

Source§

impl<'a, T, S: Shape, L: Layout> IntoExpression for &'a mut ExprMut<'_, T, S, L>

Source§

type Shape = S

Source§

type IntoExpr = ExprMut<'a, T, S, L>

Source§

impl<'a, T, S: Shape, L: Layout> IntoExpression for &'a mut Span<T, S, L>

Source§

type Shape = S

Source§

type IntoExpr = ExprMut<'a, T, S, L>

Source§

impl<E: Expression> IntoExpression for E

Source§

impl<T, S: ConstShape> IntoExpression for Array<T, S>

Source§

impl<T, S: Shape, A: Allocator> IntoExpression for Grid<T, S, A>