Trait attribute_derive::Error
source · pub trait Error {
// Required method
fn error(&self, message: impl Display) -> Error;
}
Expand description
Helper trait to generate sensible errors
Required Methods§
sourcefn error(&self, message: impl Display) -> Error
fn error(&self, message: impl Display) -> Error
This is used to be able to create errors more easily. Mostly used
through the implementation for T: ToTokens
.