Macro col
macro_rules! col { () => { ... }; ($($v:expr),+ $(,)?) => { ... }; }
Expand description
Creates a col::Col
containing the arguments.
use faer::col;
let col_vec = col![3.0, 5.0, 7.0, 9.0];
assert_eq!(col_vec.read(0), 3.0);
assert_eq!(col_vec.read(1), 5.0);
assert_eq!(col_vec.read(2), 7.0);
assert_eq!(col_vec.read(3), 9.0);