stack-array 1.1.2

A maximum-sized array stored on the stack
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//^
//^ ERRORS
//^

//> ERRORS -> UNMATCHED CAPACITY
#[derive(Debug)]
pub struct UnmatchedCapacity<const EXPECTED: usize> {
    pub present: usize
}

//> ERRORS -> CAPACITY EXCEEDED
#[derive(Debug)]
pub struct CapacityExceeded<const N: usize> {
    pub expected: usize
}