upub/apb/src/field.rs
alemi 0dedb4d243
feat(apb): all owned by default
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
2024-11-20 19:19:20 +01:00

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>;