Crate kgdata

source ·

Modules§

Macros§

  • Generating a temporary iterator over an array that allow random access at O(1) cost once the iterator is still valid.
  • Generating a temporary map view of a Rust’s map and an python object that owned the Rust’s map. The two structs allows random access at O(1) cost.
  • Generating a Python’s twin of a Rust’s type where each property of the Rust’s type is now a Python object to avoid conversion overhead.
  • Generating a temporary set view of a Rust’s set. This view allows random access at O(1) cost.
  • Generating a temporary view of a Rust’s type, properties accessed in Python will trigger a conversion.
  • Generating a Python wrapper of a Rust’s type, properties accessed in Python will trigger a conversion. Different from view, this wrapper owns the data.

Functions§