Trait array_tool::vec::Times [] [src]

pub trait Times {
    fn times(&self, qty: i32) -> Self;
}

Expand and duplicate the vectors content times the integer given

Required Methods

Example

use array_tool::vec::Times;

vec![1,2,3].times(3);

Output

vec![1,2,3,1,2,3,1,2,3]

Implementations on Foreign Types

impl<T: Clone> Times for Vec<T>
[src]

[src]

Implementors