Macrosยง
- bail_
spanned ๐Macro inspired byanyhow::bail!
to return a compiler error with the given span. - ensure_
spanned ๐Macro inspired byanyhow::ensure!
to return a compiler error with the given span if the specified condition is not met. - err_
spanned ๐Macro inspired byanyhow::anyhow!
to create a compiler error with the given span.
Structsยง
- A syntax tree which evaluates to a nul-terminated docstring for Python.
Enumsยง
- Ident
OrStr ๐ - Python
DocKind ๐
Functionsยง
- Collects all #[doc = โโฆโ] attributes into a TokenStream evaluating to a null-terminated string.
- has_
attribute ๐ - Check if the given type
ty
ispyo3::Python
. - If
ty
isOption<T>
, returnSome(T)
, elseNone
.