pub struct PyMappingSlots {
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 PyMappingSlots
impl PyMappingSlots
pub fn has_subscript(&self) -> bool
Sourcepub fn copy_from(&self, methods: &PyMappingMethods)
pub fn copy_from(&self, methods: &PyMappingMethods)
Copy from static PyMappingMethods
Trait Implementations§
Source§impl Debug for PyMappingSlots
impl Debug for PyMappingSlots
Source§impl Default for PyMappingSlots
impl Default for PyMappingSlots
Source§fn default() -> PyMappingSlots
fn default() -> PyMappingSlots
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PyMappingSlots
impl RefUnwindSafe for PyMappingSlots
impl Send for PyMappingSlots
impl Sync for PyMappingSlots
impl Unpin for PyMappingSlots
impl UnsafeUnpin for PyMappingSlots
impl UnwindSafe for PyMappingSlots
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