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

Helper trait to generate sensible errors

Required Methods§

source

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.

Implementors§

source§

impl<T> Error for Array<T>

source§

impl<T> Error for Twhere T: ToTokens,