[−][src]Struct cordoba_py::Writer
Trait Implementations
impl IntoPyObject for Writer
[src]
fn into_object(self, py: Python) -> PyObject
[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
const NAME: &'static str
[src]
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
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]
fn __enter__(&'p mut self) -> <Writer as PyContextEnterProtocol<'p>>::Result
[src]
fn __exit__(
&'p mut self,
ty: Option<<Writer as PyContextExitProtocol<'p>>::ExcType>,
_value: Option<<Writer as PyContextExitProtocol<'p>>::ExcValue>,
_traceback: Option<<Writer as PyContextExitProtocol<'p>>::Traceback>
) -> <Writer as PyContextExitProtocol<'p>>::Result
[src]
&'p mut self,
ty: Option<<Writer as PyContextExitProtocol<'p>>::ExcType>,
_value: Option<<Writer as PyContextExitProtocol<'p>>::ExcValue>,
_traceback: Option<<Writer as PyContextExitProtocol<'p>>::Traceback>
) -> <Writer as PyContextExitProtocol<'p>>::Result
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]
fn __enter__() -> Option<PyMethodDef>
[src]
impl PyContextExitProtocolImpl for Writer
[src]
fn __exit__() -> Option<PyMethodDef>
[src]
impl<'p> PyGCProtocol<'p> for Writer
[src]
fn __traverse__(&self, visit: PyVisit) -> Result<(), PyTraverseError>
[src]
fn __clear__(&mut self)
[src]
impl<'p> PyGCTraverseProtocol<'p> for Writer
[src]
impl<'p> PyGCClearProtocol<'p> for Writer
[src]
impl<'p> PyMappingProtocol<'p> for Writer
[src]
fn __setitem__(
&'p mut self,
key: <Writer as PyMappingSetItemProtocol<'p>>::Key,
value: <Writer as PyMappingSetItemProtocol<'p>>::Value
) -> <Writer as PyMappingSetItemProtocol<'p>>::Result
[src]
&'p mut self,
key: <Writer as PyMappingSetItemProtocol<'p>>::Key,
value: <Writer as PyMappingSetItemProtocol<'p>>::Value
) -> <Writer as PyMappingSetItemProtocol<'p>>::Result
fn __len__(&'p self) -> Self::Result where
Self: PyMappingLenProtocol<'p>,
[src]
Self: PyMappingLenProtocol<'p>,
fn __getitem__(&'p self, key: Self::Key) -> Self::Result where
Self: PyMappingGetItemProtocol<'p>,
[src]
Self: PyMappingGetItemProtocol<'p>,
fn __delitem__(&'p mut self, key: Self::Key) -> Self::Result where
Self: PyMappingDelItemProtocol<'p>,
[src]
Self: PyMappingDelItemProtocol<'p>,
fn __iter__(&'p self, py: Python<'p>) -> Self::Result where
Self: PyMappingIterProtocol<'p>,
[src]
Self: PyMappingIterProtocol<'p>,
fn __contains__(&'p self, value: Self::Value) -> Self::Result where
Self: PyMappingContainsProtocol<'p>,
[src]
Self: PyMappingContainsProtocol<'p>,
fn __reversed__(&'p self) -> Self::Result where
Self: PyMappingReversedProtocol<'p>,
[src]
Self: PyMappingReversedProtocol<'p>,
impl<'p> PyMappingSetItemProtocol<'p> for Writer
[src]
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
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> PyTypeObject for T where
T: PyTypeCreate,
[src]
T: PyTypeCreate,
impl<T> PyMethodsProtocol for T where
T: PyMethodsInventoryDispatch,
[src]
T: PyMethodsInventoryDispatch,
fn py_methods() -> Vec<&'static PyMethodDefType>
[src]
impl<T> ToBorrowedObject for T where
T: ToPyObject,
[src]
T: ToPyObject,
fn with_borrowed_ptr<F, R>(&self, py: Python, f: F) -> R where
F: FnOnce(*mut PyObject) -> R,
[src]
F: FnOnce(*mut PyObject) -> R,
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]
T: ToPyObject + ToPyPointer,
fn with_borrowed_ptr<F, R>(&self, _py: Python, f: F) -> R where
F: FnOnce(*mut PyObject) -> R,
[src]
F: FnOnce(*mut PyObject) -> R,
impl<T> PyTryFrom for T where
T: PyTypeInfo,
[src]
T: PyTypeInfo,
fn try_from(value: &PyObjectRef) -> Result<&T, PyDowncastError>
[src]
fn try_from_exact(value: &PyObjectRef) -> Result<&T, PyDowncastError>
[src]
fn try_from_mut(value: &PyObjectRef) -> Result<&mut T, PyDowncastError>
[src]
fn try_from_mut_exact(value: &PyObjectRef) -> Result<&mut T, PyDowncastError>
[src]
unsafe fn try_from_unchecked(value: &PyObjectRef) -> &T
[src]
unsafe fn try_from_mut_unchecked(value: &PyObjectRef) -> &mut T
[src]
impl<T> ReturnTypeIntoPyResult for T where
T: IntoPyObject,
[src]
T: IntoPyObject,
type Inner = T
fn return_type_into_py_result(
self
) -> Result<<T as ReturnTypeIntoPyResult>::Inner, PyErr>
[src]
self
) -> Result<<T as ReturnTypeIntoPyResult>::Inner, PyErr>
impl<T> PyObjectAlloc for T where
T: PyObjectWithFreeList,
[src]
T: PyObjectWithFreeList,
unsafe fn alloc(_py: Python) -> Result<*mut PyObject, PyErr>
[src]
unsafe fn dealloc(py: Python, obj: *mut PyObject)
[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]
T: PyObjectAlloc + PyTypeInfo + PyMethodsProtocol,