Struct pyo3::types::PySliceIndices
source · [−]pub struct PySliceIndices {
pub start: isize,
pub stop: isize,
pub step: isize,
pub slicelength: isize,
}
Expand description
Represents Python slice
indices.
Fields
start: isize
stop: isize
step: isize
slicelength: isize
Implementations
sourceimpl PySliceIndices
impl PySliceIndices
Trait Implementations
sourceimpl Debug for PySliceIndices
impl Debug for PySliceIndices
sourceimpl PartialEq<PySliceIndices> for PySliceIndices
impl PartialEq<PySliceIndices> for PySliceIndices
sourcefn eq(&self, other: &PySliceIndices) -> bool
fn eq(&self, other: &PySliceIndices) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourceimpl ToPyObject for PySliceIndices
impl ToPyObject for PySliceIndices
impl Eq for PySliceIndices
impl StructuralEq for PySliceIndices
impl StructuralPartialEq for PySliceIndices
Auto Trait Implementations
impl RefUnwindSafe for PySliceIndices
impl Send for PySliceIndices
impl Sync for PySliceIndices
impl Unpin for PySliceIndices
impl UnwindSafe for PySliceIndices
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
sourceimpl<T> ToBorrowedObject for T where
T: ToPyObject,
impl<T> ToBorrowedObject for T where
T: ToPyObject,
sourcefn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> R where
F: FnOnce(*mut PyObject) -> R,
fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> R where
F: FnOnce(*mut PyObject) -> R,
👎Deprecated since 0.17.0:
this trait is no longer used by PyO3, use ToPyObject or IntoPy<PyObject>
Converts self into a Python object and calls the specified closure on the native FFI pointer underlying the Python object. Read more