alemi
0dedb4d243
references are cool but it was mostly cloned anyway so may aswell be consistent. it would be awesome to make a Node which works by references eventually, so it can be Copy, but probably quite annoying to make
5 lines
148 B
Rust
5 lines
148 B
Rust
#[derive(Debug, thiserror::Error)]
|
|
#[error("missing field '{0}'")]
|
|
pub struct FieldErr(pub &'static str);
|
|
|
|
pub type Field<T> = Result<T, FieldErr>;
|