there is a contains function generated by the bitflags macro Signed-off-by: William Casarin <jb55@jb55.com>