Trait easy_plugin::ToError [] [src]

pub trait ToError<T, S> where S: Into<String> {
    fn to_error(&self, message: S) -> PluginResult<T>;
}

A type that can be extended into a PluginResult<T>.

Required Methods

Returns an Err value with the span of this value and the supplied message.

Implementors