[−][src]Struct rustpython_vm::obj::objslice::PySlice
Fields
start: Option<PyObjectRef>
stop: PyObjectRef
step: Option<PyObjectRef>
Methods
impl PySlice
[src][−]
pub fn start_index(&self, vm: &VirtualMachine) -> PyResult<Option<BigInt>>
[src]
pub fn stop_index(&self, vm: &VirtualMachine) -> PyResult<Option<BigInt>>
[src]
pub fn step_index(&self, vm: &VirtualMachine) -> PyResult<Option<BigInt>>
[src]
Trait Implementations
impl Debug for PySlice
[src][+]
impl PyClassDef for PySlice
[src]
impl PyClassImpl for PySlice
[src][+]
impl PyValue for PySlice
[src][+]
Auto Trait Implementations
impl !RefUnwindSafe for PySlice
impl !Send for PySlice
impl !Sync for PySlice
impl Unpin for PySlice
impl !UnwindSafe for PySlice
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src][+]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src][+]
T: ?Sized,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> IntoPyObject for T where
T: PyValue,
[src][+]
T: PyValue,
impl<T> PyObjectPayload for T where
T: 'static + PyValue,
[src][+]
T: 'static + PyValue,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[+]
V: MultiLane<T>,