[][src]Struct nanoset_py::NanoSet

pub struct NanoSet { /* fields omitted */ }

A set that has lower memory footprint if it is empty.

Methods

impl NanoSet[src]

pub fn new() -> Self[src]

pub fn from_set(obj: PyObject) -> Self[src]

pub fn try_from_any(py: Python, any: &PyAny) -> PyResult<Self>[src]

pub fn try_from_obj(py: Python, obj: PyObject) -> PyResult<Self>[src]

pub fn try_from_iterator(py: Python, it: PyIterator) -> PyResult<Self>[src]

Trait Implementations

impl Debug for NanoSet[src]

impl Default for NanoSet[src]

impl Drop for NanoSet[src]

impl FromPy<PySet> for NanoSet[src]

impl IntoPy<PyObject> for NanoSet[src]

impl<'p> PyGCClearProtocol<'p> for NanoSet[src]

impl<'p> PyGCProtocol<'p> for NanoSet[src]

impl<'p> PyGCTraverseProtocol<'p> for NanoSet[src]

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

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

impl PyMethodsInventoryDispatch for NanoSet[src]

type InventoryType = NanoSetGeneratedPyo3Inventory

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

impl<'p> PyNumberAndProtocol<'p> for NanoSet[src]

type Left = &'p Self

type Right = &'p PyAny

type Success = PyObject

type Result = PyResult<PyObject>

impl<'p> PyNumberOrProtocol<'p> for NanoSet[src]

type Left = &'p Self

type Right = &'p PyAny

type Success = PyObject

type Result = PyResult<PyObject>

impl<'p> PyNumberProtocol<'p> for NanoSet[src]

impl<'p> PyNumberSubProtocol<'p> for NanoSet[src]

type Left = &'p Self

type Right = &'p PyAny

type Success = PyObject

type Result = PyResult<PyObject>

impl<'p> PyNumberXorProtocol<'p> for NanoSet[src]

type Left = &'p Self

type Right = &'p PyAny

type Success = PyObject

type Result = PyResult<PyObject>

impl PyObjectAlloc for NanoSet[src]

impl<'p> PyObjectBoolProtocol<'p> for NanoSet[src]

impl<'p> PyObjectProtocol<'p> for NanoSet[src]

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

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

impl<'p> PySequenceContainsProtocol<'p> for NanoSet[src]

type Item = &'p PyAny

type Result = PyResult<bool>

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

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

impl PyTypeInfo for NanoSet[src]

type Type = NanoSet

Type of objects to store in PyObject struct

type BaseType = PyAny

Base class

Auto Trait Implementations

impl RefUnwindSafe for NanoSet

impl Send for NanoSet

impl Sync for NanoSet

impl Unpin for NanoSet

impl UnwindSafe for NanoSet

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> PyMethodsProtocol for T where
    T: PyMethodsInventoryDispatch, 
[src]

impl<T> PyObjectAlloc for T where
    T: PyObjectWithFreeList
[src]

impl<'v, T> PyTryFrom<'v> for T where
    T: PyTypeInfo
[src]

impl<T> PyTypeCreate for T where
    T: PyObjectAlloc + PyTypeObject
[src]

impl<T> PyTypeObject for T where
    T: PyTypeInfo + PyMethodsProtocol + PyObjectAlloc
[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.