pub struct PyRange(/* private fields */);
Expand description
Represents a Python range
.
Values of this type are accessed via PyO3’s smart pointers, e.g. as
Py<PyRange>
or Bound<'py, PyRange>
.
For APIs available on range
objects, see the PyRangeMethods
trait which is implemented for
Bound<'py, PyRange>
.
Implementations§
Trait Implementations§
Source§impl PyTypeInfo for PyRange
impl PyTypeInfo for PyRange
Source§fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
fn type_object_raw(py: Python<'_>) -> *mut PyTypeObject
Returns the PyTypeObject instance for this type.
Source§fn is_type_of(obj: &Bound<'_, PyAny>) -> bool
fn is_type_of(obj: &Bound<'_, PyAny>) -> bool
Checks if
object
is an instance of this type or a subclass of this type.impl DerefToPyAny for PyRange
Auto Trait Implementations§
impl !Freeze for PyRange
impl !RefUnwindSafe for PyRange
impl !Send for PyRange
impl !Sync for PyRange
impl Unpin for PyRange
impl UnwindSafe for PyRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more