[][src]Macro byte_set::byte_set

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

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'));