Skip to main content

mutable_vector_from_value

Function mutable_vector_from_value 

Source
pub fn mutable_vector_from_value(cx: &mut Cx, value: &Value) -> Result<Value>
Expand description

Build a MutableVector by copying the elements of a vector-shaped value.

The source is read through its Expr::Vector form, so the resulting mutable vector is an independent copy; errors if value is not vector-shaped.