Struct rustpython_vm::protocol::PyMappingMethods
source · pub struct PyMappingMethods {
pub length: AtomicCell<Option<fn(_: PyMapping<'_>, _: &VirtualMachine) -> PyResult<usize>>>,
pub subscript: AtomicCell<Option<fn(_: PyMapping<'_>, _: &PyObject, _: &VirtualMachine) -> PyResult>>,
pub ass_subscript: AtomicCell<Option<fn(_: PyMapping<'_>, _: &PyObject, _: Option<PyObjectRef>, _: &VirtualMachine) -> PyResult<()>>>,
}
Fields§
§length: AtomicCell<Option<fn(_: PyMapping<'_>, _: &VirtualMachine) -> PyResult<usize>>>
§subscript: AtomicCell<Option<fn(_: PyMapping<'_>, _: &PyObject, _: &VirtualMachine) -> PyResult>>
§ass_subscript: AtomicCell<Option<fn(_: PyMapping<'_>, _: &PyObject, _: Option<PyObjectRef>, _: &VirtualMachine) -> PyResult<()>>>
Implementations§
source§impl PyMappingMethods
impl PyMappingMethods
pub const NOT_IMPLEMENTED: PyMappingMethods = _
Trait Implementations§
source§impl Debug for PyMappingMethods
impl Debug for PyMappingMethods
source§impl Default for PyMappingMethods
impl Default for PyMappingMethods
source§fn default() -> PyMappingMethods
fn default() -> PyMappingMethods
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PyMappingMethods
impl Send for PyMappingMethods
impl Sync for PyMappingMethods
impl Unpin for PyMappingMethods
impl UnwindSafe for PyMappingMethods
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more