[][src]Struct pyrpds::vector::Vector

pub struct Vector { /* fields omitted */ }

Implementations

impl Vector[src]

#[must_use]pub fn new() -> Self[src]

impl Vector[src]

pub fn set(&self, index: isize, py_object: PyObject) -> PyResult<Self>[src]

pub fn append(&self, py_object: PyObject) -> PyResult<Self>[src]

pub fn extend(&self, iterator: PyObject) -> PyResult<Self>[src]

pub fn get(&self, index: isize) -> PyResult<PyObject>[src]

pub fn index(&self, py_object: PyObject) -> PyResult<usize>[src]

pub fn count(&self, py_object: PyObject) -> PyResult<usize>[src]

pub fn remove(&self, py_object: PyObject) -> PyResult<Self>[src]

pub fn mset(&self, args: &PyTuple) -> PyResult<Vector>[src]

Trait Implementations

impl Default for Vector[src]

impl Display for Vector[src]

impl<'a> ExtractExt<'a> for &'a Vector[src]

type Target = PyRef<'a, Vector>

impl<'a> ExtractExt<'a> for &'a mut Vector[src]

type Target = PyRefMut<'a, Vector>

impl Hash for Vector[src]

impl IntoPy<PyObject> for Vector[src]

impl PyClass for Vector[src]

type Dict = PyClassDummySlot

Specify this class has #[pyclass(dict)] or not.

type WeakRef = PyClassDummySlot

Specify this class has #[pyclass(weakref)] or not.

type BaseNativeType = PyAny

The closest native ancestor. This is PyAny by default, and when you declare #[pyclass(extends=PyDict)], it's PyDict. Read more

impl PyClassAlloc for Vector[src]

impl<'p> PyIterIterProtocol<'p> for Vector[src]

impl<'p> PyIterProtocol<'p> for Vector[src]

impl PyMethodsInventoryDispatch for Vector[src]

type InventoryType = VectorGeneratedPyo3Inventory

This allows us to get the inventory type when only the pyclass is in scope

impl<'p> PyObjectHashProtocol<'p> for Vector[src]

impl<'p> PyObjectProtocol<'p> for Vector

impl<'p> PyObjectReprProtocol<'p> for Vector[src]

impl<'p> PyObjectRichcmpProtocol<'p> for Vector[src]

type Other = &'p PyAny

type Success = bool

type Result = PyResult<bool>

impl<'p> PySequenceGetItemProtocol<'p> for Vector[src]

impl<'p> PySequenceLenProtocol<'p> for Vector[src]

impl<'p> PySequenceProtocol<'p> for Vector[src]

impl PyTypeInfo for Vector[src]

type Type = Vector

Type of objects to store in PyObject struct

type BaseType = PyAny

Base class

type Layout = PyCell<Self>

Layout

type BaseLayout = PyCellBase<PyAny>

Layout of Basetype.

type Initializer = PyClassInitializer<Self>

Initializer for layout

type AsRefTarget = PyCell<Self>

Utility type to make AsPyRef work

Auto Trait Implementations

impl !RefUnwindSafe for Vector

impl !Send for Vector

impl !Sync for Vector

impl Unpin for Vector

impl UnwindSafe for Vector

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> FromPy<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> IntoPy<U> for T where
    U: FromPy<T>, 
[src]

impl<T> PyClassAlloc for T where
    T: PyTypeInfo + PyClassWithFreeList
[src]

impl<T> PyMethodsProtocol for T where
    T: PyMethodsInventoryDispatch, 
[src]

impl<T> PyTypeObject for T where
    T: PyTypeInfo
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.