Skip to main content

apply_length_out_cloneable

Function apply_length_out_cloneable 

Source
fn apply_length_out_cloneable<T: Clone>(
    v: Vec<T>,
    length_out: Option<i64>,
) -> Result<Vec<T>, RError>
Expand description

Truncate or cycle-extend a Vec<T: Clone> to the requested length.out.