[]Struct pyconnect6::macro_def::PyPolicy

pub struct PyPolicy { /* fields omitted */ }

Methods

impl PyPolicy

pub fn __call__(
    &self,
    py: Python,
    _turn: PyObject,
    boards: PyObject
) -> PyResult<PyObject>

Trait Implementations

impl PythonObject for PyPolicy

unsafe fn unchecked_downcast_from(obj: PyObject) -> Self

Unchecked downcast from PyObject to Self. Undefined behavior if the input object does not have the expected type.

unsafe fn unchecked_downcast_borrow_from<'a>(obj: &'a PyObject) -> &'a Self

Unchecked downcast from PyObject to Self. Undefined behavior if the input object does not have the expected type.

impl PythonObjectWithCheckedDowncast for PyPolicy

impl PythonObjectWithTypeObject for PyPolicy

impl ToPyObject for PyPolicy

Identity conversion: allows using existing PyObject instances where T: ToPyObject is expected.

type ObjectType = PyPolicy

impl<'source> FromPyObject<'source> for PyPolicy

impl<'source> FromPyObject<'source> for &'source PyPolicy

impl PythonObjectFromPyClassMacro for PyPolicy

impl BaseObject for PyPolicy

type InitType = ()

Auto Trait Implementations

impl Send for PyPolicy

impl Sync for PyPolicy

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T> PyClone for T where
    T: PythonObject, 

impl<T> PyDrop for T where
    T: PythonObject, 

impl<T> RefFromPyObject for T where
    T: ?Sized,
    &'a T: FromPyObject<'a>,