pub fn evaluate_cas(
current: Option<&[u8]>,
expectation: RefExpectationWire,
expected: Option<&[u8]>,
) -> CasDecisionExpand description
Decide a CAS write from its wire form. current is the ref’s value
(None when absent) and expected the MATCH target, which must be
None for ANY and MISSING. Ids are compared as opaque bytes.
ANYalways commits.MISSINGcommits only whencurrentisNone.MATCHcommits only whencurrentequalsexpected.