offset_polygon/
error.rs

1use std::fmt;
2
3pub struct CombinatorialExplosionError;
4
5impl fmt::Display for CombinatorialExplosionError {
6    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
7        write!(f, "Combinatorial explosion.")
8    }
9}
10
11impl fmt::Debug for CombinatorialExplosionError {
12    fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
13        <Self as fmt::Display>::fmt(self, f)
14    }
15}
16
17impl std::error::Error for CombinatorialExplosionError {
18}