macro_rules! contains {
($bytes:expr, $subbytes:expr) => { ... };
}Expand description
Checks if the string/binary is contained in a string/binary
ยงUsage
use we_cdk::*;
#[action]
fn _constructor() {
let result: Boolean = contains!(&[0, 1, 2, 3, 4, 5], &[2, 3]);
let result: Boolean = contains!("Hello, world!", "world");
}