dope-core 0.77.0

Owned native I/O and completion driver for dope
Documentation
use std::mem;

mod sealed;
pub use sealed::{edge::Edge, index::SlotIndex};

/// Exact raw position rejected by the route slot ABI bound.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
#[repr(transparent)]
pub struct SlotOverflow(pub(super) usize);

impl SlotOverflow {
    pub(crate) const fn new(actual: usize) -> Self {
        Self(actual)
    }

    pub const fn actual(self) -> usize {
        self.0
    }
}

const _: () = {
    const _: () = assert!(mem::size_of::<Option<Edge>>() == mem::size_of::<u32>());
    assert!(mem::size_of::<SlotIndex>() == mem::size_of::<u32>());
    assert!(mem::size_of::<Option<SlotIndex>>() == mem::size_of::<u32>());
    assert!(mem::size_of::<Edge>() == mem::size_of::<u32>());
};