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: isizestop: isizestep: isizeslicelength: isizeImplementations
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
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 Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
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 Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
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 Twhere
T: ToPyObject,
impl<T> ToBorrowedObject for Twhere
T: ToPyObject,
sourcefn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere
F: FnOnce(*mut PyObject) -> R,
fn with_borrowed_ptr<F, R>(&self, py: Python<'_>, f: F) -> Rwhere
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