macro_rules! pyset { ($structname:ident (module = $module:literal, item = $item:ty as $itemview:ty $(, derive = ($( $derivetrait:ident ),*) )? )) => { ... }; }
Expand description
Generating a temporary set view of a Rust’s set. This view allows random access at O(1) cost.
§Placeholder
- structname: name of the module that will contains the mapview
- module: name of the python module that will contains this struct
- derivetrait: optional, list of traits to derive for the struct
- itemview: the item view type (a pyo3 class) – expect to have a constructor
new(&item)
- item: the item type (rust struct)