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

Method tuple

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

Source from the content-addressed store, hash-verified

221 /// Return a fresh tuple based on the Sequence.
222 #[inline]
223 pub fn tuple(&self, py: Python) -> PyResult<PyTuple> {
224 unsafe { result_cast_from_owned_ptr(py, ffi::PySequence_Tuple(self.as_ptr())) }
225 }
226
227 #[inline]
228 pub fn iter<'p>(&self, py: Python<'p>) -> PyResult<PyIterator<'p>> {

Callers

nothing calls this directly

Calls 2

as_ptrMethod · 0.45

Tested by

no test coverage detected