Skip to content

Instantly share code, notes, and snippets.

View austin362667's full-sized avatar

Austin Liu austin362667

View GitHub Profile
@austin362667
austin362667 / playground.rs
Created June 12, 2024 05:41 — forked from rust-play/playground.rs
Code shared from the Rust Playground
// WARNING: THIS CODE IS A HACKY PROTOTYPE FOR TOY PURPOSES ONLY.
// CHOOSING TO COPY THIS CODE INTO YOUR RUST PROGRAM IS WILDLY UNSOUND.
//
// ping me (davidhewitt) on the PyO3 issue tracker and we can figure out
// how to do this safely.
use std::collections::{HashMap, hash_map::Iter as MapIter};
// pyclass 1
pub struct Class {