Struct rustpython_vm::protocol::PySequenceMethods
source · pub struct PySequenceMethods {
pub length: AtomicCell<Option<fn(_: PySequence<'_>, _: &VirtualMachine) -> PyResult<usize>>>,
pub concat: AtomicCell<Option<fn(_: PySequence<'_>, _: &PyObject, _: &VirtualMachine) -> PyResult>>,
pub repeat: AtomicCell<Option<fn(_: PySequence<'_>, _: isize, _: &VirtualMachine) -> PyResult>>,
pub item: AtomicCell<Option<fn(_: PySequence<'_>, _: isize, _: &VirtualMachine) -> PyResult>>,
pub ass_item: AtomicCell<Option<fn(_: PySequence<'_>, _: isize, _: Option<PyObjectRef>, _: &VirtualMachine) -> PyResult<()>>>,
pub contains: AtomicCell<Option<fn(_: PySequence<'_>, _: &PyObject, _: &VirtualMachine) -> PyResult<bool>>>,
pub inplace_concat: AtomicCell<Option<fn(_: PySequence<'_>, _: &PyObject, _: &VirtualMachine) -> PyResult>>,
pub inplace_repeat: AtomicCell<Option<fn(_: PySequence<'_>, _: isize, _: &VirtualMachine) -> PyResult>>,
}
Fields§
§length: AtomicCell<Option<fn(_: PySequence<'_>, _: &VirtualMachine) -> PyResult<usize>>>
§concat: AtomicCell<Option<fn(_: PySequence<'_>, _: &PyObject, _: &VirtualMachine) -> PyResult>>
§repeat: AtomicCell<Option<fn(_: PySequence<'_>, _: isize, _: &VirtualMachine) -> PyResult>>
§item: AtomicCell<Option<fn(_: PySequence<'_>, _: isize, _: &VirtualMachine) -> PyResult>>
§ass_item: AtomicCell<Option<fn(_: PySequence<'_>, _: isize, _: Option<PyObjectRef>, _: &VirtualMachine) -> PyResult<()>>>
§contains: AtomicCell<Option<fn(_: PySequence<'_>, _: &PyObject, _: &VirtualMachine) -> PyResult<bool>>>
§inplace_concat: AtomicCell<Option<fn(_: PySequence<'_>, _: &PyObject, _: &VirtualMachine) -> PyResult>>
§inplace_repeat: AtomicCell<Option<fn(_: PySequence<'_>, _: isize, _: &VirtualMachine) -> PyResult>>
Implementations§
source§impl PySequenceMethods
impl PySequenceMethods
pub const NOT_IMPLEMENTED: PySequenceMethods = _
Trait Implementations§
source§impl Debug for PySequenceMethods
impl Debug for PySequenceMethods
source§impl Default for PySequenceMethods
impl Default for PySequenceMethods
source§fn default() -> PySequenceMethods
fn default() -> PySequenceMethods
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl !Freeze for PySequenceMethods
impl RefUnwindSafe for PySequenceMethods
impl Send for PySequenceMethods
impl Sync for PySequenceMethods
impl Unpin for PySequenceMethods
impl UnwindSafe for PySequenceMethods
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