pub type Barriers<R> = HashMap<Id, Barrier<R>>;
Map of barriers by resource id.
struct Barriers<R> { /* private fields */ }