Macro include_sql::index_of
source · index_of!() { /* proc-macro */ }
Expand description
Finds the specified item (ident
) in a list (of idents
).
Returns the item’s index offset by the number after +
.
let idx = include_sql::index_of!(id in [name, flag, id] + 1);
assert_eq!(idx, 3);