macro_rules! bfe_array { ($b:expr; $n:expr) => { ... }; ($($b:expr),* $(,)?) => { ... }; }
Expand description
Simplifies constructing arrays of base field elements.
The type BFieldElement
must be in scope for this macro to work. See also bfe!
.
ยงExamples
let a = bfe_array![1, 2, 3];
let b = [bfe!(1), bfe!(2), bfe!(3)];
assert_eq!(a, b);
let a = bfe_array![42; 15];
let b = [bfe!(42); 15];
assert_eq!(a, b);