spru_util/pile/error.rs
1#[derive(Clone, Debug, thiserror::Error)]
2pub enum Pop {
3 #[error("The pile is empty")]
4 Empty,
5}
6
7#[derive(Clone, Debug, thiserror::Error)]
8pub enum Insert {
9 #[error("The index ({0}/{1}) is invalid")]
10 Index(usize, usize),
11}
12
13#[derive(Clone, Debug, thiserror::Error)]
14pub enum Remove {
15 #[error("The index ({0}/{1}) is invalid")]
16 Index(usize, usize),
17}