⚠️ Internal Docs ⚠️ Not Public API πŸ‘‰ Official Docs Here

Macros

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

Macro inspired by anyhow::ensure! to return a compiler error with the given span if the specified condition is not met.

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

Structs

A syntax tree which evaluates to a null-terminated docstring for Python.

Functions

Collects all #[doc = β€œβ€¦β€] attributes into a TokenStream evaluating to a null-terminated string e.g. concat!(β€œβ€¦β€, β€œ\n”, β€œ\0”)

Extract the path to the pyo3 crate, or use the default (::pyo3).

Check if the given type ty is pyo3::Python.

If ty is Option, return Some(T), else None.

Remove lifetime from reference

Replace Self keyword in type with cls