Skip to main content

stack_array/
errors.rs

1//^
2//^ ERRORS
3//^
4
5//> ERRORS -> UNMATCHED CAPACITY
6#[derive(Debug)]
7pub struct UnmatchedCapacity<const EXPECTED: usize> {
8    pub present: usize
9}
10
11//> ERRORS -> CAPACITY EXCEEDED
12#[derive(Debug)]
13pub struct CapacityExceeded<const N: usize> {
14    pub expected: usize
15}