Crate vino_macros

Source
Expand description

Maintenance

§vino-macros

Macros used by the Vino project

Re-exports§

pub use tracing;

Macros§

ensure
Test a condition and if it is false, return the supplied error
highlight
Aggressively prints to the terminal. Useful for rapid debugging in a sea of terminal output.
log_err
Turns an expression into an error while logging it.
log_tap
Wrap an expression that prints debug output to the terminal while returning the original expression. Useful for logging without disturbing the code’s structure.
ok_or_bail
Returns an unwrapped Result if Ok() otherwise returns the passed expression
ok_or_continue
Returns an unwrapped Ok if Ok() otherwise continues a loop.
some_or_bail
Returns an unwrapped Option if Some() otherwise returns the passed expression
some_or_continue
Returns an unwrapped Option if Some() otherwise continues a loop.