MCPcopy Create free account

hub / github.com/dgrunwald/rust-cpython / functions

Functions924 in github.com/dgrunwald/rust-cpython

Functioncomparisons
()
tests/test_class.rs:522
Functioncontains
()
tests/test_class.rs:752
Methodcontains
Determine if the dictionary contains the specified key. This is equivalent to the Python expression `key in self`.
src/objects/dict.rs:61
Methodcontains
(&self, py: Python, value: V)
src/objects/sequence.rs:184
Methodcontains
Determine if the set contains the specified value. This is equivalent to the Python expression `value in self`.
src/objects/set.rs:68
Functioncontains_opt_ref
()
tests/test_class.rs:786
Functioncontains_ref
()
tests/test_class.rs:769
Functioncontext_manager
()
tests/test_class.rs:1198
Methodconvert
(val: S, py: Python)
src/function.rs:183
Methodconvert
(_: (), _: Python)
src/py_class/slots.rs:571
Methodcopy
Return a new dictionary that contains the same key-value pairs as self. Corresponds to `dict(self)` in Python.
src/objects/dict.rs:42
Methodcopy_from_fortran_slice
Copies the specified slice into the buffer. If the buffer is multi-dimensional, the elements in the slice are expected to be in Fortran-style order.
src/buffer.rs:545
Methodcopy_to_fortran_slice
Copies the buffer elements to the specified slice. If the buffer is multi-dimensional, the elements are written in Fortran-style order. Fails if the
src/buffer.rs:447
Methodcount
(&self, py: Python, value: V)
src/objects/sequence.rs:168
Functioncreate_class_method_descriptor
( method_def: *mut ffi::PyMethodDef, )
src/py_class/members.rs:171
Methodcreate_instance
Create a new instance of the class. The parameters args and kw are used as the positional and keyword parameters to the object’s constructor.
src/objects/oldstyle.rs:49
Functioncreate_instance_method_descriptor
( method_def: *mut ffi::PyMethodDef, )
src/py_class/members.rs:114
Methodcreate_instance_raw
Create a new instance of a specific class without calling its constructor. The dict parameter will be used as the object’s __dict__.
src/objects/oldstyle.rs:68
Methodcustom
(msg: T)
src/serde/error.rs:56
Functiondata_drop
(_py: Python<'_>, obj: *mut ffi::PyObject, offset: usize)
src/py_class/mod.rs:102
Functiondata_get
(_py: Python<'a>, obj: &'a PyObject, offset: usize)
src/py_class/mod.rs:85
Functiondata_init
(_py: Python<'a>, obj: &'a PyObject, offset: usize, value: T)
src/py_class/mod.rs:92
Functiondata_is_dropped
()
tests/test_class.rs:150
Functiondata_new_size
(base_size: usize)
src/py_class/mod.rs:79
Functiondata_offset
(base_size: usize)
src/py_class/mod.rs:71
Methoddata_ref
Returns a reference to the capsule data. The name must match exactly the one given at capsule creation time (see `new_data`) and is converted to a C
src/objects/capsule.rs:614
Methoddealloc
(_py: Python, obj: *mut ffi::PyObject)
src/py_class/mod.rs:146
Methoddefault
()
python3-sys/src/pyhash.rs:21
Methoddefault
()
python3-sys/src/methodobject.rs:80
Methoddefault
()
python3-sys/src/objimpl.rs:69
Methoddefault
()
python3-sys/src/initconfig.rs:26
Methoddefault
()
python3-sys/src/pybuffer.rs:29
Methoddefault
()
python3-sys/src/object.rs:201
Methoddefault
()
python3-sys/src/code.rs:106
Methoddel_item
(&self, py: Python, key: K)
src/objectprotocol.rs:318
Methoddel_item
Deletes an item. This is equivalent to the Python expression `del self[key]`.
src/objects/dict.rs:101
Methoddel_item
(&self, py: Python, i: isize)
src/objects/sequence.rs:130
Methoddel_slice
(&self, py: Python, i1: isize, i2: isize)
src/objects/sequence.rs:156
Methoddelattr
(&self, py: Python, attr_name: N)
src/objectprotocol.rs:76
Functiondelitem
()
tests/test_class.rs:694
Methodderef
(&self)
src/sharedref.rs:447
Methodderef_mut
(&mut self)
src/sharedref.rs:467
Methoddeserialize_byte_buf
(self, v: V)
src/serde/de.rs:181
Methoddeserialize_char
(self, v: V)
src/serde/de.rs:168
Methoddeserialize_enum
( self, _name: &'static str, _variants: &'static [&'static str], v: V, )
src/serde/de.rs:239
Methoddeserialize_f32
(self, v: V)
src/serde/de.rs:156
Methoddeserialize_i16
(self, v: V)
src/serde/de.rs:128
Methoddeserialize_i32
(self, v: V)
src/serde/de.rs:132
Methoddeserialize_i8
(self, v: V)
src/serde/de.rs:124
Methoddeserialize_identifier
(self, v: V)
src/serde/de.rs:248
Methoddeserialize_ignored_any
(self, v: V)
src/serde/de.rs:252
Methoddeserialize_newtype_struct
( self, _: &'static str, v: V, )
src/serde/de.rs:201
Methoddeserialize_option
(self, v: V)
src/serde/de.rs:185
Methoddeserialize_str
(self, v: V)
src/serde/de.rs:172
Methoddeserialize_struct
( self, _name: &'static str, _fields: &'static [&'static str], v: V, )
src/serde/de.rs:230
Methoddeserialize_tuple
(self, _len: usize, v: V)
src/serde/de.rs:213
Methoddeserialize_tuple_struct
( self, _name: &'static str, _len: usize, v: V, )
src/serde/de.rs:217
Methoddeserialize_u16
(self, v: V)
src/serde/de.rs:144
Methoddeserialize_u32
(self, v: V)
src/serde/de.rs:148
Methoddeserialize_u8
(self, v: V)
src/serde/de.rs:140
Methoddeserialize_unit_struct
(self, _: &'static str, v: V)
src/serde/de.rs:197
Methoddict
Return the dictionary object that implements module's namespace; this object is the same as the `__dict__` attribute of the module object.
src/objects/module.rs:50
Methoddiscard
Discard a value This is equivalent to the Python expression `self.discard(value)`.
src/objects/set.rs:94
Methoddiv_mod
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:123
Methoddo_compare
( py: Python, a: *mut ffi::PyObject, b: *mut ffi::PyObject, )
src/objectprotocol.rs:105
Methoddowncast_borrow_from
( py: Python<'p>, obj: &'a PyObject, )
src/objects/string.rs:76
Methoddowncast_borrow_from
( _py: Python<'p>, obj: &'a PyObject, )
src/objects/object.rs:102
Methoddowncast_from
( py: Python<'_>, obj: PyObject, )
src/objects/string.rs:60
Methoddowncast_from
( _py: Python<'_>, obj: PyObject, )
src/objects/object.rs:94
Methoddrop
(&mut self)
src/buffer.rs:611
Methoddrop
(&mut self)
src/sharedref.rs:293
Methoddrop
(&mut self)
src/pythonrun.rs:105
Methoddrop
(&mut self)
src/function.rs:272
Methoddrop
(&mut self)
src/objects/object.rs:62
Methoddrop
(&mut self)
tests/test_class.rs:139
Methodempty
Retrieves the empty tuple.
src/objects/tuple.rs:48
Methodempty
(py: Python)
src/objects/set.rs:49
Functionempty_class
()
tests/test_class.rs:39
Functionempty_class_in_module
()
tests/test_class.rs:52
Functionempty_class_with_new
()
tests/test_class.rs:82
Methodend
(self)
src/serde/ser.rs:346
Methodeq
(&self, o: &PyType)
src/objects/typeobject.rs:83
Methodeq
(&self, o: &PyObject)
src/objects/object.rs:274
Methodeq
(&self, _other: &Self)
extensions/tests/btree.rs:18
Functionerr_if_invalid_value
( py: Python, invalid_value: T, actual_value: T, )
src/objects/num.rs:189
Methoderror_value
()
src/function.rs:188
Methoderror_value
()
src/py_class/slots.rs:576
Functionexit_thread
(py: Python)
tests/test_thread_exit.rs:47
Methodextract
(py: Python, obj: &'s PyObject)
src/conversion.rs:226
Methodextract
(py: Python, obj: &'s PyObject)
src/objects/string.rs:501
Methodextract
(py: Python, obj: &PyObject)
src/objects/none.rs:51
Functionextract_op
(py: Python, op: c_int)
src/py_class/slots.rs:407
Methodfetch
Retrieves the current error from the Python interpreter's global state. The error is cleared from the Python interpreter. If no error is set, returns
src/err.rs:218
Methodfilename
(&self, py: Python)
src/objects/module.rs:83
Methodfilename_object
(&self, py: Python)
src/objects/module.rs:91
Methodfloor_divide
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:103
Methodfmt
(&self, f: &mut fmt::Formatter)
python27-sys/build.rs:18
Methodfmt
(&self, f: &mut fmt::Formatter)
python3-sys/build.rs:15
Methodfmt
(&self, f: &mut fmt::Formatter)
src/objectprotocol.rs:340
Methodfmt
(&self, f: &mut std::fmt::Formatter)
src/python.rs:361
← previousnext →501–600 of 924, ranked by callers