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

Method str

src/objectprotocol.rs:184–186  ·  view source on GitHub ↗
(&self, py: Python)

Source from the content-addressed store, hash-verified

182 /// This is equivalent to the Python expression 'str(self)'.
183 #[inline]
184 fn str(&self, py: Python) -> PyResult<PyString> {
185 unsafe { err::result_cast_from_owned_ptr(py, ffi::PyObject_Str(self.as_ptr())) }
186 }
187
188 /// Compute the unicode string representation of self.
189 /// This is equivalent to the Python expression 'unistr(self)'.

Callers 1

fmtMethod · 0.80

Implementers 1

objectprotocol.rssrc/objectprotocol.rs

Calls 2

as_ptrMethod · 0.45

Tested by

no test coverage detected