Skip to main content

create_spreaded_array

Function create_spreaded_array 

Source
pub fn create_spreaded_array(values: &[Expr]) -> ArrayLit
Expand description

Creates an ArrayLit with a spread.

§Arguments

  • values - The values to include in the array literal

§Example

let array_lit = _create_spreaded_array(vec![expr1, expr2, expr3]);