[][src]Struct cordoba_py::Writer

pub struct Writer { /* fields omitted */ }

Trait Implementations

impl IntoPyObject for Writer[src]

impl ToPyObject for Writer[src]

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

impl ToPyPointer for Writer[src]

impl PyTypeInfo for Writer[src]

type Type = Writer

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> PyContextProtocol<'p> for Writer[src]

impl<'p> PyContextEnterProtocol<'p> for Writer[src]

impl<'p> PyContextExitProtocol<'p> for Writer[src]

type ExcType = &'p PyType

type ExcValue = &'p PyObjectRef

type Traceback = &'p PyObjectRef

type Success = bool

type Result = PyResult<bool>

impl PyContextEnterProtocolImpl for Writer[src]

impl PyContextExitProtocolImpl for Writer[src]

impl<'p> PyGCProtocol<'p> for Writer[src]

impl<'p> PyGCTraverseProtocol<'p> for Writer[src]

impl<'p> PyGCClearProtocol<'p> for Writer[src]

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

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

fn __getitem__(&'p self, key: Self::Key) -> Self::Result where
    Self: PyMappingGetItemProtocol<'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> PyMappingSetItemProtocol<'p> for Writer[src]

type Key = &'p PyBytes

type Value = &'p PyBytes

type Result = PyResult<()>

impl PyMethodsInventoryDispatch for Writer[src]

type InventoryType = WriterGeneratedPyo3Inventory

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

impl PyObjectAlloc for Writer[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 Writer

impl Sync for Writer

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