Skip to main content

sim_lib_mutation/
cap.rs

1use sim_kernel::CapabilityName;
2
3/// The capability name every mutation write requires: `standard.mutate`.
4///
5/// In-place writes on cells, boxes, vectors, and tables call `cx.require` with
6/// this name, so mutation fails closed unless the context has been granted the
7/// capability.
8pub fn standard_mutate_capability() -> CapabilityName {
9    CapabilityName::new("standard.mutate")
10}