[−][src]Struct nanoset_py::NanoSet
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]
fn __traverse__(&'p self, visit: PyVisit) -> Result<(), PyTraverseError>
[src]
fn __clear__(&'p mut self)
[src]
impl<'p> PyGCTraverseProtocol<'p> for NanoSet
[src]
impl<'p> PyIterIterProtocol<'p> for NanoSet
[src]
impl<'p> PyIterProtocol<'p> for NanoSet
[src]
fn __iter__(
slf: PyRefMut<'p, Self>
) -> <NanoSet as PyIterIterProtocol<'p>>::Result
[src]
slf: PyRefMut<'p, Self>
) -> <NanoSet as PyIterIterProtocol<'p>>::Result
fn __next__(slf: PyRefMut<'p, Self>) -> Self::Result where
Self: PyIterNextProtocol<'p>,
[src]
Self: PyIterNextProtocol<'p>,
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]
impl<'p> PyNumberOrProtocol<'p> for NanoSet
[src]
impl<'p> PyNumberProtocol<'p> for NanoSet
[src]
fn __and__(
lhs: <NanoSet as PyNumberAndProtocol<'p>>::Left,
rhs: <NanoSet as PyNumberAndProtocol<'p>>::Right
) -> <NanoSet as PyNumberAndProtocol<'p>>::Result
[src]
lhs: <NanoSet as PyNumberAndProtocol<'p>>::Left,
rhs: <NanoSet as PyNumberAndProtocol<'p>>::Right
) -> <NanoSet as PyNumberAndProtocol<'p>>::Result
fn __sub__(
lhs: <NanoSet as PyNumberSubProtocol<'p>>::Left,
rhs: <NanoSet as PyNumberSubProtocol<'p>>::Right
) -> <NanoSet as PyNumberSubProtocol<'p>>::Result
[src]
lhs: <NanoSet as PyNumberSubProtocol<'p>>::Left,
rhs: <NanoSet as PyNumberSubProtocol<'p>>::Right
) -> <NanoSet as PyNumberSubProtocol<'p>>::Result
fn __or__(
lhs: <NanoSet as PyNumberOrProtocol<'p>>::Left,
rhs: <NanoSet as PyNumberOrProtocol<'p>>::Right
) -> <NanoSet as PyNumberOrProtocol<'p>>::Result
[src]
lhs: <NanoSet as PyNumberOrProtocol<'p>>::Left,
rhs: <NanoSet as PyNumberOrProtocol<'p>>::Right
) -> <NanoSet as PyNumberOrProtocol<'p>>::Result
fn __xor__(
lhs: <NanoSet as PyNumberXorProtocol<'p>>::Left,
rhs: <NanoSet as PyNumberXorProtocol<'p>>::Right
) -> <NanoSet as PyNumberXorProtocol<'p>>::Result
[src]
lhs: <NanoSet as PyNumberXorProtocol<'p>>::Left,
rhs: <NanoSet as PyNumberXorProtocol<'p>>::Right
) -> <NanoSet as PyNumberXorProtocol<'p>>::Result
fn __add__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberAddProtocol<'p>,
[src]
Self: PyNumberAddProtocol<'p>,
fn __mul__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberMulProtocol<'p>,
[src]
Self: PyNumberMulProtocol<'p>,
fn __matmul__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberMatmulProtocol<'p>,
[src]
Self: PyNumberMatmulProtocol<'p>,
fn __truediv__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberTruedivProtocol<'p>,
[src]
Self: PyNumberTruedivProtocol<'p>,
fn __floordiv__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberFloordivProtocol<'p>,
[src]
Self: PyNumberFloordivProtocol<'p>,
fn __mod__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberModProtocol<'p>,
[src]
Self: PyNumberModProtocol<'p>,
fn __divmod__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberDivmodProtocol<'p>,
[src]
Self: PyNumberDivmodProtocol<'p>,
fn __pow__(
lhs: Self::Left,
rhs: Self::Right,
modulo: Self::Modulo
) -> Self::Result where
Self: PyNumberPowProtocol<'p>,
[src]
lhs: Self::Left,
rhs: Self::Right,
modulo: Self::Modulo
) -> Self::Result where
Self: PyNumberPowProtocol<'p>,
fn __lshift__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberLShiftProtocol<'p>,
[src]
Self: PyNumberLShiftProtocol<'p>,
fn __rshift__(lhs: Self::Left, rhs: Self::Right) -> Self::Result where
Self: PyNumberRShiftProtocol<'p>,
[src]
Self: PyNumberRShiftProtocol<'p>,
fn __radd__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRAddProtocol<'p>,
[src]
Self: PyNumberRAddProtocol<'p>,
fn __rsub__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRSubProtocol<'p>,
[src]
Self: PyNumberRSubProtocol<'p>,
fn __rmul__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRMulProtocol<'p>,
[src]
Self: PyNumberRMulProtocol<'p>,
fn __rmatmul__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRMatmulProtocol<'p>,
[src]
Self: PyNumberRMatmulProtocol<'p>,
fn __rtruediv__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRTruedivProtocol<'p>,
[src]
Self: PyNumberRTruedivProtocol<'p>,
fn __rfloordiv__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRFloordivProtocol<'p>,
[src]
Self: PyNumberRFloordivProtocol<'p>,
fn __rmod__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRModProtocol<'p>,
[src]
Self: PyNumberRModProtocol<'p>,
fn __rdivmod__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRDivmodProtocol<'p>,
[src]
Self: PyNumberRDivmodProtocol<'p>,
fn __rpow__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRPowProtocol<'p>,
[src]
Self: PyNumberRPowProtocol<'p>,
fn __rlshift__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRLShiftProtocol<'p>,
[src]
Self: PyNumberRLShiftProtocol<'p>,
fn __rrshift__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRRShiftProtocol<'p>,
[src]
Self: PyNumberRRShiftProtocol<'p>,
fn __rand__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRAndProtocol<'p>,
[src]
Self: PyNumberRAndProtocol<'p>,
fn __rxor__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberRXorProtocol<'p>,
[src]
Self: PyNumberRXorProtocol<'p>,
fn __ror__(&'p self, other: Self::Other) -> Self::Result where
Self: PyNumberROrProtocol<'p>,
[src]
Self: PyNumberROrProtocol<'p>,
fn __iadd__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIAddProtocol<'p>,
[src]
Self: PyNumberIAddProtocol<'p>,
fn __isub__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberISubProtocol<'p>,
[src]
Self: PyNumberISubProtocol<'p>,
fn __imul__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIMulProtocol<'p>,
[src]
Self: PyNumberIMulProtocol<'p>,
fn __imatmul__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIMatmulProtocol<'p>,
[src]
Self: PyNumberIMatmulProtocol<'p>,
fn __itruediv__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberITruedivProtocol<'p>,
[src]
Self: PyNumberITruedivProtocol<'p>,
fn __ifloordiv__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIFloordivProtocol<'p>,
[src]
Self: PyNumberIFloordivProtocol<'p>,
fn __imod__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIModProtocol<'p>,
[src]
Self: PyNumberIModProtocol<'p>,
fn __ipow__(
&'p mut self,
other: Self::Other,
modulo: Self::Modulo
) -> Self::Result where
Self: PyNumberIPowProtocol<'p>,
[src]
&'p mut self,
other: Self::Other,
modulo: Self::Modulo
) -> Self::Result where
Self: PyNumberIPowProtocol<'p>,
fn __ilshift__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberILShiftProtocol<'p>,
[src]
Self: PyNumberILShiftProtocol<'p>,
fn __irshift__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIRShiftProtocol<'p>,
[src]
Self: PyNumberIRShiftProtocol<'p>,
fn __iand__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIAndProtocol<'p>,
[src]
Self: PyNumberIAndProtocol<'p>,
fn __ixor__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIXorProtocol<'p>,
[src]
Self: PyNumberIXorProtocol<'p>,
fn __ior__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PyNumberIOrProtocol<'p>,
[src]
Self: PyNumberIOrProtocol<'p>,
fn __neg__(&'p self) -> Self::Result where
Self: PyNumberNegProtocol<'p>,
[src]
Self: PyNumberNegProtocol<'p>,
fn __pos__(&'p self) -> Self::Result where
Self: PyNumberPosProtocol<'p>,
[src]
Self: PyNumberPosProtocol<'p>,
fn __abs__(&'p self) -> Self::Result where
Self: PyNumberAbsProtocol<'p>,
[src]
Self: PyNumberAbsProtocol<'p>,
fn __invert__(&'p self) -> Self::Result where
Self: PyNumberInvertProtocol<'p>,
[src]
Self: PyNumberInvertProtocol<'p>,
fn __complex__(&'p self) -> Self::Result where
Self: PyNumberComplexProtocol<'p>,
[src]
Self: PyNumberComplexProtocol<'p>,
fn __int__(&'p self) -> Self::Result where
Self: PyNumberIntProtocol<'p>,
[src]
Self: PyNumberIntProtocol<'p>,
fn __float__(&'p self) -> Self::Result where
Self: PyNumberFloatProtocol<'p>,
[src]
Self: PyNumberFloatProtocol<'p>,
fn __round__(&'p self) -> Self::Result where
Self: PyNumberRoundProtocol<'p>,
[src]
Self: PyNumberRoundProtocol<'p>,
fn __index__(&'p self) -> Self::Result where
Self: PyNumberIndexProtocol<'p>,
[src]
Self: PyNumberIndexProtocol<'p>,
impl<'p> PyNumberSubProtocol<'p> for NanoSet
[src]
impl<'p> PyNumberXorProtocol<'p> for NanoSet
[src]
impl PyObjectAlloc for NanoSet
[src]
unsafe fn alloc(_py: Python) -> *mut PyObject
[src]
unsafe fn dealloc(py: Python, obj: *mut PyObject)
[src]
unsafe fn drop(py: Python, obj: *mut PyObject)
[src]
impl<'p> PyObjectBoolProtocol<'p> for NanoSet
[src]
impl<'p> PyObjectProtocol<'p> for NanoSet
[src]
fn __repr__(&'p self) -> <NanoSet as PyObjectReprProtocol<'p>>::Result
[src]
fn __bool__(&'p self) -> <NanoSet as PyObjectBoolProtocol<'p>>::Result
[src]
fn __richcmp__(
&'p self,
obj: <NanoSet as PyObjectRichcmpProtocol<'p>>::Other,
op: CompareOp
) -> <NanoSet as PyObjectRichcmpProtocol<'p>>::Result
[src]
&'p self,
obj: <NanoSet as PyObjectRichcmpProtocol<'p>>::Other,
op: CompareOp
) -> <NanoSet as PyObjectRichcmpProtocol<'p>>::Result
fn __getattr__(&'p self, name: Self::Name) -> Self::Result where
Self: PyObjectGetAttrProtocol<'p>,
[src]
Self: PyObjectGetAttrProtocol<'p>,
fn __setattr__(
&'p mut self,
name: Self::Name,
value: Self::Value
) -> Self::Result where
Self: PyObjectSetAttrProtocol<'p>,
[src]
&'p mut self,
name: Self::Name,
value: Self::Value
) -> Self::Result where
Self: PyObjectSetAttrProtocol<'p>,
fn __delattr__(&'p mut self, name: Self::Name) -> Self::Result where
Self: PyObjectDelAttrProtocol<'p>,
[src]
Self: PyObjectDelAttrProtocol<'p>,
fn __str__(&'p self) -> Self::Result where
Self: PyObjectStrProtocol<'p>,
[src]
Self: PyObjectStrProtocol<'p>,
fn __format__(&'p self, format_spec: Self::Format) -> Self::Result where
Self: PyObjectFormatProtocol<'p>,
[src]
Self: PyObjectFormatProtocol<'p>,
fn __hash__(&'p self) -> Self::Result where
Self: PyObjectHashProtocol<'p>,
[src]
Self: PyObjectHashProtocol<'p>,
fn __bytes__(&'p self) -> Self::Result where
Self: PyObjectBytesProtocol<'p>,
[src]
Self: PyObjectBytesProtocol<'p>,
impl<'p> PyObjectReprProtocol<'p> for NanoSet
[src]
impl<'p> PyObjectRichcmpProtocol<'p> for NanoSet
[src]
impl<'p> PySequenceContainsProtocol<'p> for NanoSet
[src]
impl<'p> PySequenceLenProtocol<'p> for NanoSet
[src]
impl<'p> PySequenceProtocol<'p> for NanoSet
[src]
fn __len__(&'p self) -> <NanoSet as PySequenceLenProtocol<'p>>::Result
[src]
fn __contains__(
&'p self,
item: <NanoSet as PySequenceContainsProtocol<'p>>::Item
) -> <NanoSet as PySequenceContainsProtocol<'p>>::Result
[src]
&'p self,
item: <NanoSet as PySequenceContainsProtocol<'p>>::Item
) -> <NanoSet as PySequenceContainsProtocol<'p>>::Result
fn __getitem__(&'p self, idx: Self::Index) -> Self::Result where
Self: PySequenceGetItemProtocol<'p>,
[src]
Self: PySequenceGetItemProtocol<'p>,
fn __setitem__(
&'p mut self,
idx: Self::Index,
value: Self::Value
) -> Self::Result where
Self: PySequenceSetItemProtocol<'p>,
[src]
&'p mut self,
idx: Self::Index,
value: Self::Value
) -> Self::Result where
Self: PySequenceSetItemProtocol<'p>,
fn __delitem__(&'p mut self, idx: Self::Index) -> Self::Result where
Self: PySequenceDelItemProtocol<'p>,
[src]
Self: PySequenceDelItemProtocol<'p>,
fn __concat__(&'p self, other: Self::Other) -> Self::Result where
Self: PySequenceConcatProtocol<'p>,
[src]
Self: PySequenceConcatProtocol<'p>,
fn __repeat__(&'p self, count: Self::Index) -> Self::Result where
Self: PySequenceRepeatProtocol<'p>,
[src]
Self: PySequenceRepeatProtocol<'p>,
fn __inplace_concat__(&'p mut self, other: Self::Other) -> Self::Result where
Self: PySequenceInplaceConcatProtocol<'p>,
[src]
Self: PySequenceInplaceConcatProtocol<'p>,
fn __inplace_repeat__(&'p mut self, count: Self::Index) -> Self::Result where
Self: PySequenceInplaceRepeatProtocol<'p>,
[src]
Self: PySequenceInplaceRepeatProtocol<'p>,
impl PyTypeInfo for NanoSet
[src]
type Type = NanoSet
Type of objects to store in PyObject struct
type BaseType = PyAny
Base class
const NAME: &'static str
[src]
const MODULE: Option<&'static str>
[src]
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
const SIZE: usize
[src]
const OFFSET: isize
[src]
unsafe fn type_object() -> &'static mut PyTypeObject
[src]
fn is_instance(object: &PyAny) -> bool
[src]
fn is_exact_instance(object: &PyAny) -> bool
[src]
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[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]
U: From<T>,
impl<T, U> IntoPy<U> for T where
U: FromPy<T>,
[src]
U: FromPy<T>,
impl<T> PyMethodsProtocol for T where
T: PyMethodsInventoryDispatch,
[src]
T: PyMethodsInventoryDispatch,
fn py_methods() -> Vec<&'static PyMethodDefType>
[src]
impl<T> PyObjectAlloc for T where
T: PyObjectWithFreeList,
[src]
T: PyObjectWithFreeList,
unsafe fn alloc(_py: Python) -> *mut PyObject
[src]
unsafe fn dealloc(py: Python, obj: *mut PyObject)
[src]
unsafe fn drop(py: Python, obj: *mut PyObject)
[src]
impl<'v, T> PyTryFrom<'v> for T where
T: PyTypeInfo,
[src]
T: PyTypeInfo,
fn try_from<V>(value: V) -> Result<&'v T, PyDowncastError> where
V: Into<&'v PyAny>,
[src]
V: Into<&'v PyAny>,
fn try_from_exact<V>(value: V) -> Result<&'v T, PyDowncastError> where
V: Into<&'v PyAny>,
[src]
V: Into<&'v PyAny>,
fn try_from_mut<V>(value: V) -> Result<&'v mut T, PyDowncastError> where
V: Into<&'v PyAny>,
[src]
V: Into<&'v PyAny>,
fn try_from_mut_exact<V>(value: V) -> Result<&'v mut T, PyDowncastError> where
V: Into<&'v PyAny>,
[src]
V: Into<&'v PyAny>,
unsafe fn try_from_unchecked<V>(value: V) -> &'v T where
V: Into<&'v PyAny>,
[src]
V: Into<&'v PyAny>,
unsafe fn try_from_mut_unchecked<V>(value: V) -> &'v mut T where
V: Into<&'v PyAny>,
[src]
V: Into<&'v PyAny>,
impl<T> PyTypeCreate for T where
T: PyObjectAlloc + PyTypeObject,
[src]
T: PyObjectAlloc + PyTypeObject,
impl<T> PyTypeObject for T where
T: PyTypeInfo + PyMethodsProtocol + PyObjectAlloc,
[src]
T: PyTypeInfo + PyMethodsProtocol + PyObjectAlloc,
fn init_type() -> NonNull<PyTypeObject>
[src]
fn type_object() -> Py<PyType>
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,