Type Alias PyLong

pub type PyLong = PyInt;
👎Deprecated since 0.23.0: use PyInt instead
Available on crate features dep_pyo3 and std only.
Expand description

Deprecated alias for PyInt.

Aliased Type§

struct PyLong(/* private fields */);

Trait Implementations

§

impl AsRef<PyAny> for PyInt

§

fn as_ref(&self) -> &PyAny

Converts this type into a shared reference of the (usually inferred) input type.
§

impl Deref for PyInt

§

type Target = PyAny

The resulting type after dereferencing.
§

fn deref(&self) -> &PyAny

Dereferences the value.
§

impl PyTypeInfo for PyInt

§

const NAME: &'static str = "PyInt"

Class name.
§

const MODULE: Option<&'static str>

Module name, if any.
§

fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject

Returns the PyTypeObject instance for this type.
§

fn is_type_of_bound(obj: &Bound<'_, PyAny>) -> bool

👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_type_of
Deprecated name for PyTypeInfo::is_type_of.
§

fn type_object(py: Python<'_>) -> Bound<'_, PyType>

Returns the safe abstraction over the type object.
§

fn type_object_bound(py: Python<'_>) -> Bound<'_, PyType>

👎Deprecated since 0.23.0: renamed to PyTypeInfo::type_object
Deprecated name for PyTypeInfo::type_object.
§

fn is_type_of(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type or a subclass of this type.
§

fn is_exact_type_of(object: &Bound<'_, PyAny>) -> bool

Checks if object is an instance of this type.
§

fn is_exact_type_of_bound(object: &Bound<'_, PyAny>) -> bool

👎Deprecated since 0.23.0: renamed to PyTypeInfo::is_exact_type_of
Deprecated name for PyTypeInfo::is_exact_type_of.
§

impl DerefToPyAny for PyInt