[][src]Struct cordoba_py::Reader

pub struct Reader { /* fields omitted */ }

Trait Implementations

impl IntoPyObject for Reader[src]

impl ToPyObject for Reader[src]

impl<'a> ToPyObject for &'a mut Reader[src]

impl ToPyPointer for Reader[src]

impl PyTypeInfo for Reader[src]

type Type = Reader

Type of objects to store in PyObject struct

type BaseType = PyObjectRef

Base class

fn is_instance(object: &PyObjectRef) -> bool[src]

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

fn is_exact_instance(object: &PyObjectRef) -> bool[src]

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

impl<'p> PyIterProtocol<'p> for Reader[src]

fn __next__(&'p mut self) -> Self::Result where
    Self: PyIterNextProtocol<'p>, 
[src]

impl<'p> PyIterIterProtocol<'p> for Reader[src]

impl<'p> PyMappingProtocol<'p> for Reader[src]

fn __len__(&'p self) -> Self::Result where
    Self: PyMappingLenProtocol<'p>, 
[src]

fn __setitem__(&'p mut self, key: Self::Key, value: Self::Value) -> Self::Result where
    Self: PyMappingSetItemProtocol<'p>, 
[src]

fn __delitem__(&'p mut self, key: Self::Key) -> Self::Result where
    Self: PyMappingDelItemProtocol<'p>, 
[src]

fn __iter__(&'p self, py: Python<'p>) -> Self::Result where
    Self: PyMappingIterProtocol<'p>, 
[src]

fn __contains__(&'p self, value: Self::Value) -> Self::Result where
    Self: PyMappingContainsProtocol<'p>, 
[src]

fn __reversed__(&'p self) -> Self::Result where
    Self: PyMappingReversedProtocol<'p>, 
[src]

impl<'p> PyMappingGetItemProtocol<'p> for Reader[src]

impl PyMethodsInventoryDispatch for Reader[src]

type InventoryType = ReaderGeneratedPyo3Inventory

This allows us to get the inventory type when only the pyclass is in scope

impl PyObjectAlloc for Reader[src]

unsafe fn alloc(_py: Python) -> Result<*mut PyObject, PyErr>[src]

unsafe fn dealloc(py: Python, obj: *mut PyObject)[src]

Calls the rust destructor for the object and frees the memory (usually by calling ptr->ob_type->tp_free). This function is used as tp_dealloc implementation. Read more

unsafe fn drop(py: Python, obj: *mut PyObject)[src]

Calls the rust destructor for the object.

Auto Trait Implementations

impl Send for Reader

impl Sync for Reader

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
    U: Into<T>, 
[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> Any for T where
    T: 'static + ?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> PyTypeObject for T where
    T: PyTypeCreate
[src]

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

impl<T> ToBorrowedObject for T where
    T: ToPyObject
[src]

fn with_borrowed_ptr<F, R>(&self, py: Python, f: F) -> R where
    F: FnOnce(*mut PyObject) -> R, 
[src]

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

impl<T> ToBorrowedObject for T where
    T: ToPyObject + ToPyPointer
[src]

impl<T> PyTryFrom for T where
    T: PyTypeInfo
[src]

impl<T> ReturnTypeIntoPyResult for T where
    T: IntoPyObject
[src]

impl<T> PyObjectAlloc for T where
    T: PyObjectWithFreeList
[src]

unsafe fn drop(py: Python, obj: *mut PyObject)[src]

Calls the rust destructor for the object.

impl<T> PyTypeCreate for T where
    T: PyObjectAlloc + PyTypeInfo + PyMethodsProtocol
[src]

fn type_object() -> Py<PyType>[src]

#[must_use]
fn create(py: Python) -> Result<PyRawObject, PyErr>
[src]

Create PyRawObject which can be initialized with rust value