[][src]Trait pyo3::class::methods::PyMethodsProtocol

pub trait PyMethodsProtocol {
    fn py_methods() -> Vec<&'static PyMethodDefType>;
}

The implementation of tis trait defines which methods a python type has.

For pyclass derived structs this is implemented by collecting all impl blocks through inventory

Required methods

fn py_methods() -> Vec<&'static PyMethodDefType>

Returns all methods that are defined for a class

Loading content...

Implementors

impl<T> PyMethodsProtocol for T where
    T: PyMethodsInventoryDispatch, 
[src]

Loading content...