Struct pyo3::PyObjectRef [] [src]

pub struct PyObjectRef(_);

Represents general python instance.

Trait Implementations

impl<U> PyTryInto<U> for PyObjectRef where
    U: PyTryFrom
[src]

The type returned in the event of a conversion error.

[src]

Cast from PyObject to a concrete Python object type.

[src]

Cast from PyObject to a concrete Python object type. With exact type check.

[src]

Cast from PyObject to a concrete Python object type.

[src]

Cast from PyObject to a concrete Python object type. With exact type check.

impl<'a> From<&'a PyType> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyModule> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyDict> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyBool> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyByteArray> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyTuple> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyList> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyFloat> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PySlice> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PySet> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyFrozenSet> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyLong> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyString> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl<'a> From<&'a PyBytes> for &'a PyObjectRef
[src]

[src]

Performs the conversion.

impl AsRef<PyObjectRef> for PyObjectRef
[src]

[src]

Performs the conversion.

impl PyObjectWithToken for PyObjectRef
[src]

[src]

impl ToPyPointer for PyObjectRef
[src]

[src]

Gets the underlying FFI pointer, returns a borrowed pointer.

impl PartialEq for PyObjectRef
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl PyTypeInfo for PyObjectRef
[src]

Type of objects to store in PyObject struct

Base class

NAME: &'static str = "PyObjectRef"

Class name

SIZE: usize = ::std::mem::size_of::<::ffi::PyObject>()

Size of the rust PyObject structure (PyObject + rust structure)

OFFSET: isize = 0

Type instance offset inside PyObject structure

[src]

PyTypeObject instance for this type

[src]

Check if *mut ffi::PyObject is instance of this type

DESCRIPTION: &'static str = "\u{0}"

Class doc string

FLAGS: usize = 0

Type flags (ie PY_TYPE_FLAG_GC, PY_TYPE_FLAG_WEAKREF)

[src]

Check if *mut ffi::PyObject is exact instance of this type

impl PyTypeObject for PyObjectRef
[src]

[src]

Initialize type object

[src]

Retrieves the type object for this Python object type.

[src]

Create PyRawObject which can be initialized with rust value

impl ToPyObject for PyObjectRef
[src]

[src]

Converts self into a Python object.

impl ToBorrowedObject for PyObjectRef
[src]

[src]

Converts self into a Python object and calls the specified closure on the native FFI pointer underlying the Python object. Read more

impl Debug for PyObjectRef
[src]

[src]

Formats the value using the given formatter.

impl Display for PyObjectRef
[src]

[src]

Formats the value using the given formatter. Read more

impl<'a> FromPyObject<'a> for &'a PyObjectRef
[src]

[src]

Extracts Self from the source PyObject.