otp-std 0.2.3

Generating and verifying One-Time Passwords.
Documentation
//! Various macros used by this crate.

macro_rules! errors {
    (
        Type = $type: ty,
        Hack = $hack: tt,
        $(
            $name: ident => $method: ident (
                $(
                    $variable_name: ident $(=> $prepare: ident)?
                ),*
                $(,)?
            )
        ),*
        $(,)?
    ) => {
        $(
            macro_rules! $name {
                (
                    $(
                        $hack $variable_name: expr
                    ),*
                ) => {
                    <$type>::$method(
                        $(
                            $hack $variable_name$(.$prepare())?
                        ),*
                    )
                }
            }
        )*
    };
}

pub(crate) use errors;