marrub
/
grope
Archived
1
0
Fork 0
This repository has been archived on 2023-06-17. You can view files and clone it, but cannot push or open issues/pull-requests.
grope/src/err.rs

9 lines
221 B
Rust

#[derive(Debug)] pub struct StrErr(pub String);
impl<T: ToString> From<T> for StrErr
{fn from(e: T) -> Self {StrErr(e.to_string())}}
impl StrErr {pub fn new(e: impl ToString) -> Self {StrErr(e.to_string())}}
// EOF