twenty_first::prelude

Macro bfe_vec

Source
macro_rules! bfe_vec {
    ($b:expr; $n:expr) => { ... };
    ($($b:expr),* $(,)?) => { ... };
}
Expand description

Simplifies constructing vectors of base field elements.

The type BFieldElement must be in scope for this macro to work. See also bfe!.

ยงExamples

let a = bfe_vec![1, 2, 3];
let b = vec![bfe!(1), bfe!(2), bfe!(3)];
assert_eq!(a, b);
let a = bfe_vec![42; 15];
let b = vec![bfe!(42); 15];
assert_eq!(a, b);