pyo3_macros_backend::utils

Macro bail_spanned

Source
macro_rules! bail_spanned {
    ($span:expr => $msg:expr) => { ... };
}
Expand description

Macro inspired by anyhow::bail! to return a compiler error with the given span.

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here