[−][src]Struct pyo3::ffi::PyObject
Fields
ob_refcnt: Py_ssize_t
ob_type: *mut PyTypeObject
Trait Implementations
impl Clone for PyObject
[src]
impl Copy for PyObject
[src]
impl Debug for PyObject
[src]
impl PyObjectLayout<PyAny> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyBool> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyByteArray> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyBytes> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyList> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyLong> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyModule> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyString> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyTuple> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyType> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectLayout<PyTzInfo> for PyObject
[src]
const IS_NATIVE_TYPE: bool
[src]
fn get_super_or(
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
[src]
&mut self
) -> Option<&mut <T::BaseType as PyTypeInfo>::ConcreteLayout>
unsafe fn internal_ref_cast(obj: &PyAny) -> &T
[src]
unsafe fn internal_mut_cast(obj: &PyAny) -> &mut T
[src]
unsafe fn py_init(&mut self, _value: T)
[src]
unsafe fn py_drop(&mut self, _py: Python)
[src]
impl PyObjectSizedLayout<PyAny> for PyObject
[src]
impl PyObjectSizedLayout<PyBool> for PyObject
[src]
impl PyObjectSizedLayout<PyTzInfo> for PyObject
[src]
Auto Trait Implementations
impl RefUnwindSafe for PyObject
impl !Send for PyObject
impl !Sync for PyObject
impl Unpin for PyObject
impl UnwindSafe for PyObject
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
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, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,