MCPcopy Index your code
hub / github.com/RustPython/RustPython / sequence_unchecked

Method sequence_unchecked

crates/vm/src/protocol/sequence.rs:107–109  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

105impl PyObject {
106 #[inline]
107 pub fn sequence_unchecked(&self) -> PySequence<'_> {
108 PySequence { obj: self }
109 }
110
111 pub fn try_sequence(&self, vm: &VirtualMachine) -> PyResult<PySequence<'_>> {
112 let seq = self.sequence_unchecked();

Callers 15

length_optMethod · 0.80
set_itemMethod · 0.80
del_itemMethod · 0.80
try_sequenceMethod · 0.80
concatMethod · 0.80
inplace_concatMethod · 0.80
__contains__Method · 0.80
_containsMethod · 0.80
__length_hint__Method · 0.80
nextMethod · 0.80
callMethod · 0.80
try_to_boolMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected