cloned

Function cloned 

Source
pub fn cloned<'a, T: 'a + Clone, I: IntoExpression<Item = &'a T>>(
    expr: I,
) -> Cloned<I::IntoExpr>
Expand description

Creates an expression that clones the elements of the argument.

ยงExamples

use mdarray::{expr, expr::Expression, view};

let v = view![0, 1, 2];

assert_eq!(expr::cloned(v).eval(), v);