A helper trait to log errors.
The logging functions will track the caller’s callsite.
For a chain of calls A -> B -> C -> ErrorPrinter, the
topmost function without #[track_caller] is deemed the callsite.
A helper trait to log when an option is None.
The logging functions will track the caller’s callsite.
For a chain of calls A -> B -> C -> OptionPrinter, the
topmost function without #[track_caller] is deemed the callsite.