macro_rules! xfe { ($value:expr) => { ... }; }
Expand description
Simplifies constructing extension field elements.
The type XFieldElement
must be in scope for this macro to work.
See XFieldElement::from
for supported types.
ยงExamples
let a = xfe!(1);
let b = xfe!([2, 0, 5]);
let c = xfe!([3, 0, 2 + 3]);
assert_eq!(a + b, c);