[][src]Trait gulali::builders::full::Full

pub trait Full<T> where
    T: Copy
{ fn full(&mut self, value: T) -> Self; }

Fillable vectors

Required methods

fn full(&mut self, value: T) -> Self

Returns a new vector of given shape and type, filled with value.

Examples

let arr1: Vec<i64> = Vec::one_dim(2).full(10);
assert_eq!(arr1, [10, 10]);

let arr2: Vec<Vec<Vec<Vec<f64>>>> = Vec::four_dim(1, 1, 1, 2).full(2.5);
assert_eq!(arr2, [[[[2.5, 2.5]]]]);
Loading content...

Implementations on Foreign Types

impl<T> Full<T> for Vec<T> where
    T: Copy
[src]

impl<T> Full<T> for Vec<Vec<T>> where
    T: Copy
[src]

impl<T> Full<T> for Vec<Vec<Vec<T>>> where
    T: Copy
[src]

impl<T> Full<T> for Vec<Vec<Vec<Vec<T>>>> where
    T: Copy
[src]

Loading content...

Implementors

Loading content...