Skip to main content

tag_error

Macro tag_error 

Source
macro_rules! tag_error {
    ( $type:ident $(,)? ) => { ... };
    ( $type:ident, $display:expr $(,)? ) => { ... };
}
Expand description

Define an error type implemented as an empty struct.

The first argument is the type name. The second optional argument is the Display representation, which defaults to the type name.