[−][src]Struct cordoba_py::FileIter
Trait Implementations
impl IntoPyObject for FileIter
[src]
fn into_object(self, py: Python) -> PyObject
[src]
impl ToPyObject for FileIter
[src]
impl<'a> ToPyObject for &'a mut FileIter
[src]
impl ToPyPointer for FileIter
[src]
impl PyTypeInfo for FileIter
[src]
type Type = FileIter
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> PyIterProtocol<'p> for FileIter
[src]
fn __iter__(&'p mut self) -> <FileIter as PyIterIterProtocol<'p>>::Result
[src]
fn __next__(&'p mut self) -> <FileIter as PyIterNextProtocol<'p>>::Result
[src]
impl<'p> PyIterIterProtocol<'p> for FileIter
[src]
impl<'p> PyIterNextProtocol<'p> for FileIter
[src]
impl PyMethodsInventoryDispatch for FileIter
[src]
type InventoryType = FileIterGeneratedPyo3Inventory
This allows us to get the inventory type when only the pyclass is in scope
impl PyObjectAlloc for FileIter
[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,