wof 1.0.0

The Who's On First rust library and command line.
Documentation
1
2
3
4
5
6
7
8
9
10
pub trait StringifyError<T> {
  fn stringify_err(self, msg: &str) -> Result<T, String>;
}

impl<T, E: std::fmt::Display> StringifyError<T> for Result<T, E> {
  #[inline]
  fn stringify_err(self, msg: &str) -> Result<T, String> {
    self.map_err(|e| format!("{}: {}", msg, e))
  }
}