MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / list

Method list

src/objects/sequence.rs:217–219  ·  view source on GitHub ↗
(&self, py: Python)

Source from the content-addressed store, hash-verified

215 /// Return a fresh list based on the Sequence.
216 #[inline]
217 pub fn list(&self, py: Python) -> PyResult<PyList> {
218 unsafe { result_cast_from_owned_ptr(py, ffi::PySequence_List(self.as_ptr())) }
219 }
220
221 /// Return a fresh tuple based on the Sequence.
222 #[inline]

Callers

nothing calls this directly

Calls 2

as_ptrMethod · 0.45

Tested by

no test coverage detected