o3 0.32.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use crate::depot::capacity;

/// An index outside the exact heap domain.
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub struct Error<C = capacity::Count> {
    pub(in crate::depot::heap::indexed) index: usize,
    pub(in crate::depot::heap::indexed) capacity: C,
}

impl<C: Copy> Error<C> {
    pub const fn index(&self) -> usize {
        self.index
    }

    pub const fn capacity(&self) -> C {
        self.capacity
    }
}