pub trait Error {
    fn error(&self, message: impl Display) -> Error;
}
Expand description

Helper trait to generate sensible errors

Required Methods

This is used to be able to create errors more easily. Mostly used through the implementation for T: ToTokens.

Implementors