Struct pyo3::types::PySliceIndices
source · pub struct PySliceIndices {
pub start: isize,
pub stop: isize,
pub step: isize,
pub slicelength: isize,
}Expand description
Return value from PySlice::indices.
Fields§
§start: isizeStart of the slice
stop: isizeEnd of the slice
step: isizeIncrement to use when iterating the slice from start to stop.
slicelength: isizeThe length of the slice calculated from the original input sequence.
Implementations§
Trait Implementations§
source§impl Debug for PySliceIndices
impl Debug for PySliceIndices
source§impl PartialEq<PySliceIndices> for PySliceIndices
impl PartialEq<PySliceIndices> for PySliceIndices
source§fn 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 ==.source§impl 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§
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
§impl<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,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.