[−][src]Struct pyrpds::set::Set
Implementations
impl Set
[src]
impl Set
[src]
pub fn add(&self, py_object: PyObject) -> PyResult<Self>
[src]
pub fn discard(&self, py_object: PyObject) -> PyResult<Self>
[src]
pub fn remove(&self, py_object: PyObject) -> PyResult<Self>
[src]
pub fn isdisjoint(&self, other: &Set) -> PyResult<bool>
[src]
pub fn update(&self, iterator: PyObject) -> PyResult<Self>
[src]
Trait Implementations
impl Default for Set
[src]
impl Display for Set
[src]
impl<'a> ExtractExt<'a> for &'a Set
[src]
impl<'a> ExtractExt<'a> for &'a mut Set
[src]
impl Hash for Set
[src]
fn hash<H: Hasher>(&self, state: &mut H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl IntoPy<PyObject> for Set
[src]
impl PyClass for Set
[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 Set
[src]
unsafe fn alloc(_py: Python) -> *mut Self::Layout
[src]
unsafe fn dealloc(py: Python, self_: *mut Self::Layout)
[src]
impl<'p> PyIterIterProtocol<'p> for Set
[src]
type Success = PyObjectIterator
type Result = PyResult<PyObjectIterator>
impl<'p> PyIterProtocol<'p> for Set
[src]
fn __iter__(slf: PyRefMut<Self>) -> <Set as PyIterIterProtocol<'p>>::Result
[src]
fn __next__(slf: PyRefMut<Self>) -> Self::Result where
Self: PyIterNextProtocol<'p>,
[src]
Self: PyIterNextProtocol<'p>,
impl PyMethodsInventoryDispatch for Set
[src]
type InventoryType = SetGeneratedPyo3Inventory
This allows us to get the inventory type when only the pyclass is in scope
impl<'p> PyObjectHashProtocol<'p> for Set
[src]
impl<'p> PyObjectProtocol<'p> for Set
fn __hash__(&'p self) -> <Set as PyObjectHashProtocol<'p>>::Result
[src]
fn __richcmp__(
&'p self,
other: <Set as PyObjectRichcmpProtocol<'p>>::Other,
op: CompareOp
) -> <Set as PyObjectRichcmpProtocol<'p>>::Result
[src]
&'p self,
other: <Set as PyObjectRichcmpProtocol<'p>>::Other,
op: CompareOp
) -> <Set as PyObjectRichcmpProtocol<'p>>::Result
fn __repr__(&'p self) -> <Set as PyObjectReprProtocol<'p>>::Result
[src]
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 __bool__(&'p self) -> Self::Result where
Self: PyObjectBoolProtocol<'p>,
[src]
Self: PyObjectBoolProtocol<'p>,
fn __bytes__(&'p self) -> Self::Result where
Self: PyObjectBytesProtocol<'p>,
[src]
Self: PyObjectBytesProtocol<'p>,
impl<'p> PyObjectReprProtocol<'p> for Set
[src]
impl<'p> PyObjectRichcmpProtocol<'p> for Set
[src]
impl<'p> PySequenceContainsProtocol<'p> for Set
[src]
impl<'p> PySequenceLenProtocol<'p> for Set
[src]
impl<'p> PySequenceProtocol<'p> for Set
[src]
fn __len__(&'p self) -> <Set as PySequenceLenProtocol<'p>>::Result
[src]
fn __contains__(
&'p self,
py_object: <Set as PySequenceContainsProtocol<'p>>::Item
) -> <Set as PySequenceContainsProtocol<'p>>::Result
[src]
&'p self,
py_object: <Set as PySequenceContainsProtocol<'p>>::Item
) -> <Set 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 Set
[src]
type Type = Set
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
const NAME: &'static str
[src]
const MODULE: Option<&'static str>
[src]
const DESCRIPTION: &'static str
[src]
const FLAGS: usize
[src]
fn type_object() -> &'static PyTypeObject
[src]
fn is_instance(object: &PyAny) -> bool
[src]
fn is_exact_instance(object: &PyAny) -> bool
[src]
Auto Trait Implementations
impl !RefUnwindSafe for Set
impl !Send for Set
impl !Sync for Set
impl Unpin for Set
impl UnwindSafe for Set
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> PyClassAlloc for T where
T: PyTypeInfo + PyClassWithFreeList,
[src]
T: PyTypeInfo + PyClassWithFreeList,
unsafe fn alloc(_py: Python) -> *mut <T as PyTypeInfo>::Layout
[src]
unsafe fn dealloc(py: Python, self_: *mut <T as PyTypeInfo>::Layout)
[src]
impl<T> PyMethodsProtocol for T where
T: PyMethodsInventoryDispatch,
[src]
T: PyMethodsInventoryDispatch,
fn py_methods() -> Vec<&'static PyMethodDefType>
[src]
impl<T> PyTypeObject for T where
T: PyTypeInfo,
[src]
T: PyTypeInfo,
fn type_object() -> Py<PyType>
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,