Macro pyo3_macros_backend::utils::ensure_spanned
source · [−]macro_rules! ensure_spanned {
($condition:expr, $span:expr => $msg:expr) => { ... };
}
Expand description
Macro inspired by anyhow::ensure!
to return a compiler error with the given span if the
specified condition is not met.