o3 0.62.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
use crate::buffer::{bytes::bounded, write, write::Commit};

impl Commit for u32 {
    fn commit(out: write::raw::Spare<'_, 0, Self>) {
        *out.target += out.len;
    }
}

impl Commit for bounded::Value<Vec<u8>> {
    fn commit(out: write::raw::Spare<'_, 0, Self>) {
        // SAFETY: the issuer admitted this same vector's final extent and capacity.
        unsafe { write::raw::publish_suffix(&mut out.target.0, out.len as usize) };
    }
}