Macro alloy_primitives::bloom
source · macro_rules! bloom { () => { ... }; ($($t:tt)+) => { ... }; }
Expand description
Converts a sequence of string literals containing hex-encoded data
into a new Bloom
at compile time.
If the input is empty, a zero-initialized array is returned.
See hex!
for more information.
§Examples
use alloy_primitives::{bloom, Bloom};
const ZERO: Bloom = bloom!();
assert_eq!(ZERO, Bloom::ZERO);
let byte_array: Bloom = bloom!("0x0123abcd…");