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 !Freeze for PyMappingMethods
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
Sourceยงimpl<T> IntoEither for T
impl<T> IntoEither for T
Sourceยงfn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSourceยงfn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more