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
use std::fmt;

#[derive(Debug, Default)]
pub struct Expected;

impl fmt::Display for Expected {
    fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
        write!(f, "Actual value did not match the expected value")
    }
}

impl std::error::Error for Expected {}