Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrunwald/rust-cpython
/ functions
Functions
924 in github.com/dgrunwald/rust-cpython
⨍
Functions
924
◇
Types & classes
186
Function
comparisons
()
tests/test_class.rs:522
Function
contains
()
tests/test_class.rs:752
Method
contains
Determine if the dictionary contains the specified key. This is equivalent to the Python expression `key in self`.
src/objects/dict.rs:61
Method
contains
(&self, py: Python, value: V)
src/objects/sequence.rs:184
Method
contains
Determine if the set contains the specified value. This is equivalent to the Python expression `value in self`.
src/objects/set.rs:68
Function
contains_opt_ref
()
tests/test_class.rs:786
Function
contains_ref
()
tests/test_class.rs:769
Function
context_manager
()
tests/test_class.rs:1198
Method
convert
(val: S, py: Python)
src/function.rs:183
Method
convert
(_: (), _: Python)
src/py_class/slots.rs:571
Method
copy
Return a new dictionary that contains the same key-value pairs as self. Corresponds to `dict(self)` in Python.
src/objects/dict.rs:42
Method
copy_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
Method
copy_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
Method
count
(&self, py: Python, value: V)
src/objects/sequence.rs:168
Function
create_class_method_descriptor
( method_def: *mut ffi::PyMethodDef, )
src/py_class/members.rs:171
Method
create_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
Function
create_instance_method_descriptor
( method_def: *mut ffi::PyMethodDef, )
src/py_class/members.rs:114
Method
create_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
Method
custom
(msg: T)
src/serde/error.rs:56
Function
data_drop
(_py: Python<'_>, obj: *mut ffi::PyObject, offset: usize)
src/py_class/mod.rs:102
Function
data_get
(_py: Python<'a>, obj: &'a PyObject, offset: usize)
src/py_class/mod.rs:85
Function
data_init
(_py: Python<'a>, obj: &'a PyObject, offset: usize, value: T)
src/py_class/mod.rs:92
Function
data_is_dropped
()
tests/test_class.rs:150
Function
data_new_size
(base_size: usize)
src/py_class/mod.rs:79
Function
data_offset
(base_size: usize)
src/py_class/mod.rs:71
Method
data_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
Method
dealloc
(_py: Python, obj: *mut ffi::PyObject)
src/py_class/mod.rs:146
Method
default
()
python3-sys/src/pyhash.rs:21
Method
default
()
python3-sys/src/methodobject.rs:80
Method
default
()
python3-sys/src/objimpl.rs:69
Method
default
()
python3-sys/src/initconfig.rs:26
Method
default
()
python3-sys/src/pybuffer.rs:29
Method
default
()
python3-sys/src/object.rs:201
Method
default
()
python3-sys/src/code.rs:106
Method
del_item
(&self, py: Python, key: K)
src/objectprotocol.rs:318
Method
del_item
Deletes an item. This is equivalent to the Python expression `del self[key]`.
src/objects/dict.rs:101
Method
del_item
(&self, py: Python, i: isize)
src/objects/sequence.rs:130
Method
del_slice
(&self, py: Python, i1: isize, i2: isize)
src/objects/sequence.rs:156
Method
delattr
(&self, py: Python, attr_name: N)
src/objectprotocol.rs:76
Function
delitem
()
tests/test_class.rs:694
Method
deref
(&self)
src/sharedref.rs:447
Method
deref_mut
(&mut self)
src/sharedref.rs:467
Method
deserialize_byte_buf
(self, v: V)
src/serde/de.rs:181
Method
deserialize_char
(self, v: V)
src/serde/de.rs:168
Method
deserialize_enum
( self, _name: &'static str, _variants: &'static [&'static str], v: V, )
src/serde/de.rs:239
Method
deserialize_f32
(self, v: V)
src/serde/de.rs:156
Method
deserialize_i16
(self, v: V)
src/serde/de.rs:128
Method
deserialize_i32
(self, v: V)
src/serde/de.rs:132
Method
deserialize_i8
(self, v: V)
src/serde/de.rs:124
Method
deserialize_identifier
(self, v: V)
src/serde/de.rs:248
Method
deserialize_ignored_any
(self, v: V)
src/serde/de.rs:252
Method
deserialize_newtype_struct
( self, _: &'static str, v: V, )
src/serde/de.rs:201
Method
deserialize_option
(self, v: V)
src/serde/de.rs:185
Method
deserialize_str
(self, v: V)
src/serde/de.rs:172
Method
deserialize_struct
( self, _name: &'static str, _fields: &'static [&'static str], v: V, )
src/serde/de.rs:230
Method
deserialize_tuple
(self, _len: usize, v: V)
src/serde/de.rs:213
Method
deserialize_tuple_struct
( self, _name: &'static str, _len: usize, v: V, )
src/serde/de.rs:217
Method
deserialize_u16
(self, v: V)
src/serde/de.rs:144
Method
deserialize_u32
(self, v: V)
src/serde/de.rs:148
Method
deserialize_u8
(self, v: V)
src/serde/de.rs:140
Method
deserialize_unit_struct
(self, _: &'static str, v: V)
src/serde/de.rs:197
Method
dict
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
Method
discard
Discard a value This is equivalent to the Python expression `self.discard(value)`.
src/objects/set.rs:94
Method
div_mod
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:123
Method
do_compare
( py: Python, a: *mut ffi::PyObject, b: *mut ffi::PyObject, )
src/objectprotocol.rs:105
Method
downcast_borrow_from
( py: Python<'p>, obj: &'a PyObject, )
src/objects/string.rs:76
Method
downcast_borrow_from
( _py: Python<'p>, obj: &'a PyObject, )
src/objects/object.rs:102
Method
downcast_from
( py: Python<'_>, obj: PyObject, )
src/objects/string.rs:60
Method
downcast_from
( _py: Python<'_>, obj: PyObject, )
src/objects/object.rs:94
Method
drop
(&mut self)
src/buffer.rs:611
Method
drop
(&mut self)
src/sharedref.rs:293
Method
drop
(&mut self)
src/pythonrun.rs:105
Method
drop
(&mut self)
src/function.rs:272
Method
drop
(&mut self)
src/objects/object.rs:62
Method
drop
(&mut self)
tests/test_class.rs:139
Method
empty
Retrieves the empty tuple.
src/objects/tuple.rs:48
Method
empty
(py: Python)
src/objects/set.rs:49
Function
empty_class
()
tests/test_class.rs:39
Function
empty_class_in_module
()
tests/test_class.rs:52
Function
empty_class_with_new
()
tests/test_class.rs:82
Method
end
(self)
src/serde/ser.rs:346
Method
eq
(&self, o: &PyType)
src/objects/typeobject.rs:83
Method
eq
(&self, o: &PyObject)
src/objects/object.rs:274
Method
eq
(&self, _other: &Self)
extensions/tests/btree.rs:18
Function
err_if_invalid_value
( py: Python, invalid_value: T, actual_value: T, )
src/objects/num.rs:189
Method
error_value
()
src/function.rs:188
Method
error_value
()
src/py_class/slots.rs:576
Function
exit_thread
(py: Python)
tests/test_thread_exit.rs:47
Method
extract
(py: Python, obj: &'s PyObject)
src/conversion.rs:226
Method
extract
(py: Python, obj: &'s PyObject)
src/objects/string.rs:501
Method
extract
(py: Python, obj: &PyObject)
src/objects/none.rs:51
Function
extract_op
(py: Python, op: c_int)
src/py_class/slots.rs:407
Method
fetch
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
Method
filename
(&self, py: Python)
src/objects/module.rs:83
Method
filename_object
(&self, py: Python)
src/objects/module.rs:91
Method
floor_divide
(&self, py: Python, other: impl ToPyObject)
src/objectprotocol/number.rs:103
Method
fmt
(&self, f: &mut fmt::Formatter)
python27-sys/build.rs:18
Method
fmt
(&self, f: &mut fmt::Formatter)
python3-sys/build.rs:15
Method
fmt
(&self, f: &mut fmt::Formatter)
src/objectprotocol.rs:340
Method
fmt
(&self, f: &mut std::fmt::Formatter)
src/python.rs:361
← previous
next →
501–600 of 924, ranked by callers