[−][src]Trait rustpython_vm::obj::objsequence::PySliceableSequence
Associated Types
type Sliced
Required methods
fn do_slice(&self, range: Range<usize>) -> Self::Sliced
fn do_slice_reverse(&self, range: Range<usize>) -> Self::Sliced
fn do_stepped_slice(&self, range: Range<usize>, step: usize) -> Self::Sliced
fn do_stepped_slice_reverse(
&self,
range: Range<usize>,
step: usize
) -> Self::Sliced
&self,
range: Range<usize>,
step: usize
) -> Self::Sliced
fn empty() -> Self::Sliced
fn len(&self) -> usize
fn is_empty(&self) -> bool
Provided methods
fn get_pos(&self, p: i32) -> Option<usize>
fn get_slice_pos(&self, slice_pos: &BigInt) -> usize
fn get_slice_range(
&self,
start: &Option<BigInt>,
stop: &Option<BigInt>
) -> Range<usize>
&self,
start: &Option<BigInt>,
stop: &Option<BigInt>
) -> Range<usize>
fn get_slice_items(
&self,
vm: &VirtualMachine,
slice: &PyObjectRef
) -> PyResult<Self::Sliced> where
Self: Sized,
&self,
vm: &VirtualMachine,
slice: &PyObjectRef
) -> PyResult<Self::Sliced> where
Self: Sized,
Implementations on Foreign Types
impl<T: Clone> PySliceableSequence for Vec<T>
[src]
type Sliced = Vec<T>
fn do_slice(&self, range: Range<usize>) -> Self::Sliced
[src]
fn do_slice_reverse(&self, range: Range<usize>) -> Self::Sliced
[src]
fn do_stepped_slice(&self, range: Range<usize>, step: usize) -> Self::Sliced
[src]
fn do_stepped_slice_reverse(
&self,
range: Range<usize>,
step: usize
) -> Self::Sliced
[src]
&self,
range: Range<usize>,
step: usize
) -> Self::Sliced
fn empty() -> Self::Sliced
[src]
fn len(&self) -> usize
[src]
fn is_empty(&self) -> bool
[src]
impl PySliceableSequence for String
[src]
type Sliced = String
fn do_slice(&self, range: Range<usize>) -> Self::Sliced
[src]
fn do_slice_reverse(&self, range: Range<usize>) -> Self::Sliced
[src]
fn do_stepped_slice(&self, range: Range<usize>, step: usize) -> Self::Sliced
[src]
fn do_stepped_slice_reverse(
&self,
range: Range<usize>,
step: usize
) -> Self::Sliced
[src]
&self,
range: Range<usize>,
step: usize
) -> Self::Sliced