pub struct Ctx {
pub pyo3_path: PyO3CratePath,
pub output_span: Span,
}
Fields§
§pyo3_path: PyO3CratePath
Where we can find the pyo3 crate
output_span: Span
If we are in a pymethod or pyfunction, this will be the span of the return type
Implementations§
Auto Trait Implementations§
impl Freeze for Ctx
impl RefUnwindSafe for Ctx
impl !Send for Ctx
impl !Sync for Ctx
impl Unpin for Ctx
impl UnwindSafe for Ctx
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more