dope-core 0.13.0

The manifold runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#[derive(Clone, Copy, Debug)]
pub(crate) struct BufferId(u16);

impl BufferId {
    /// # Safety
    /// `raw` must identify one live provided buffer uniquely owned by the
    /// caller.
    pub(crate) const unsafe fn new(raw: u16) -> Self {
        Self(raw)
    }

    pub(crate) const fn into_raw(self) -> u16 {
        self.0
    }
}