[][src]Trait avocado::error::ErrMsg

pub trait ErrMsg: Sized {
    fn into_message(self) -> Cow<'static, str>;
}

Values that can act as or generate an error message.

Required methods

fn into_message(self) -> Cow<'static, str>

Convert the value to an error message.

Loading content...

Implementations on Foreign Types

impl ErrMsg for &'static str
[src]

Blanket impl ErrMsg for string literals.

Loading content...

Implementors

impl<F> ErrMsg for F where
    F: FnOnce() -> String
[src]

Blanket impl ErrMsg for error message formatting functions.

Loading content...