Struct configure_me_codegen::Error
source · pub struct Error { /* private fields */ }
Expand description
Error that occured during code generation
Implementations§
source§impl Error
impl Error
sourcepub fn report(&self) -> Result<()>
pub fn report(&self) -> Result<()>
Prints a potentially-beautiful error report to stderr.
This prints a beautiful error message to stderr when the spanned
feature is on
or a non-beautiful error message otherwise.
Note that this method always colors the output.
The rationale is that this is intended to be used in build scripts only and cargo
captures their output which would make it colorless.
To turn this off you can set the NO_COLOR
environment variable.
You can also use plain Debug
which is (unusually) user-friendly to support Termination
.
Errors
This method returns an error if writing fails.
Trait Implementations§
source§impl Debug for Error
impl Debug for Error
Implemented using Display
so that it can be used with Termination
to display nicer message.