[][src]Struct bloomfilter::PyBloomFilter

pub struct PyBloomFilter { /* fields omitted */ }

Methods

impl PyBloomFilter[src]

pub fn new(obj: &PyRawObject, max_capacity: usize, target_error_rate: f64)[src]

Trait Implementations

impl IntoPyObject for PyBloomFilter[src]

impl PyTypeInfo for PyBloomFilter[src]

type Type = PyBloomFilter

Type of objects to store in PyObject struct

type BaseType = PyAny

Base class

default fn is_instance(object: &PyAny) -> bool[src]

Check if *mut ffi::PyObject is instance of this type

default fn is_exact_instance(object: &PyAny) -> bool[src]

Check if *mut ffi::PyObject is exact instance of this type

impl PyMethodsInventoryDispatch for PyBloomFilter[src]

type InventoryType = PyBloomFilterGeneratedPyo3Inventory

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

impl PyObjectAlloc for PyBloomFilter[src]

unsafe default fn alloc(_py: Python) -> *mut PyObject[src]

unsafe default fn dealloc(py: Python, obj: *mut PyObject)[src]

Calls the rust destructor for the object and frees the memory (usually by calling ptr->ob_type->tp_free). This function is used as tp_dealloc implementation. Read more

unsafe default fn drop(py: Python, obj: *mut PyObject)[src]

Calls the rust destructor for the object.

Auto Trait Implementations

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

The type returned in the event of a conversion error.

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

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

default fn type_object() -> Py<PyType>[src]

Returns the safe abstraction over the type object from [PyTypeObject::init_type]

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

impl<T> FromPy for T[src]

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

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

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

unsafe default fn drop(py: Python, obj: *mut PyObject)[src]

Calls the rust destructor for the object.

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

#[must_use]
default fn create(py: Python) -> Result<PyRawObject, PyErr>
[src]

Create PyRawObject which can be initialized with rust value