Skip to main content

PyFrameMethods

Trait PyFrameMethods 

Source
pub trait PyFrameMethods<'py>: Sealed {
    // Required method
    fn line_number(&self) -> i32;
}
Expand description

Implementation of functionality for PyFrame.

These methods are defined for the Bound<'py, PyFrame> smart pointer, so to use method call syntax these methods are separated into a trait, because stable Rust does not yet support arbitrary_self_types.

Required Methods§

Source

fn line_number(&self) -> i32

Returns the line number of the current instruction in the frame.

Implementors§

Source§

impl<'py> PyFrameMethods<'py> for Bound<'py, PyFrame>