pyo3::impl_::callback

Trait PyCallbackOutput

Source
pub trait PyCallbackOutput: Copy {
    const ERR_VALUE: Self;
}
Expand description

A type which can be the return type of a python C-API callback

Required Associated Constants§

Source

const ERR_VALUE: Self

The error value to return to python if the callback raised an exception

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl PyCallbackOutput for *mut PyObject

Source§

const ERR_VALUE: Self = {0x0 as *mut pyo3_ffi::PyObject}

Source§

impl PyCallbackOutput for c_int

Source§

const ERR_VALUE: Self = -1i32

Implementors§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here