Macro byte_set

Source
macro_rules! byte_set {
    ($($byte:expr,)*) => { ... };
    ($($byte:expr),*) => { ... };
}
Expand description

Creates a ByteSet from a sequence of u8s.

byte_set! allows ByteSets to be defined with the same syntax as vec! or array expressions.

ยงExamples

This can be used within a const context:

const SET: ByteSet = byte_set!(1, 2, 3, b'a', b'b', b'c');

assert!(SET.contains(b'a'));