[PATCH 6.12 054/269] rust: alloc: implement `contains` for `Flags`