// macros taken from pyo3 pyo3-macros-backend/src/utils.rs
// Macro inspired by `anyhow::bail!` to return a compiler error with the given span.
macro_rules!bail_spanned{($span:expr => $msg:expr)=>{returnErr(err_spanned!($span=>$msg))};}/// Macro inspired by `anyhow::anyhow!` to create a compiler error with the given span.
macro_rules!err_spanned{($span:expr => $msg:expr)=>{syn::Error::new($span,$msg)};}