Skip to main content

row

Macro row 

Source
macro_rules! row {
    ($($v:expr),* $(,)?) => { ... };
    (
        @ alloc $($unsafe:ident)? ($stack:ident) ($var:pat) (uninit::<$ty:ty >, $($arg:expr),+
        $(,)?)
    ) => { ... };
    (
        @ alloc $($unsafe:ident)? ($stack:ident) ($var:pat) (zero::<$ty:ty >, $($arg:expr),+
        $(,)?)
    ) => { ... };
}
Expand description

creates a row::Row containing the arguments

use faer::row;
let row_vec = row![3.0, 5.0, 7.0, 9.0];
assert_eq!(row_vec[0], 3.0);
assert_eq!(row_vec[1], 5.0);
assert_eq!(row_vec[2], 7.0);
assert_eq!(row_vec[3], 9.0);