spru-util 0.1.0

An experimental framework for building multiplayer strategy and digital board games.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#[derive(Clone, Debug, thiserror::Error)]
pub enum Pop {
    #[error("The pile is empty")]
    Empty,
}

#[derive(Clone, Debug, thiserror::Error)]
pub enum Insert {
    #[error("The index ({0}/{1}) is invalid")]
    Index(usize, usize),
}

#[derive(Clone, Debug, thiserror::Error)]
pub enum Remove {
    #[error("The index ({0}/{1}) is invalid")]
    Index(usize, usize),
}