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

Method append

src/objects/list.rs:91–93  ·  view source on GitHub ↗

Appends an item to the end of the list

(&self, _py: Python, item: PyObject)

Source from the content-addressed store, hash-verified

89
90 /// Appends an item to the end of the list
91 pub fn append(&self, _py: Python, item: PyObject) {
92 unsafe { ffi::PyList_Append(self.0.as_ptr(), item.as_ptr()) };
93 }
94
95 #[inline]
96 pub fn iter<'a, 'p>(&'a self, py: Python<'p>) -> PyListIterator<'a, 'p> {

Callers 6

test_appendFunction · 0.80
writeFunction · 0.80
implFunction · 0.80
operator_implFunction · 0.80
match_bracesFunction · 0.80
check_symbols.pyFile · 0.80

Calls 1

as_ptrMethod · 0.45

Tested by 1

test_appendFunction · 0.64