andrusha / pandas-maxminddb

Fast geolocation library for Pandas dataframes written in Rust
MIT License
11 stars 0 forks source link

Allow for any generic field selector #8

Open andrusha opened 1 year ago

andrusha commented 1 year ago

Implement as a macro?

https://doc.rust-lang.org/book/ch19-06-macros.html https://users.rust-lang.org/t/deriving-external-traits-on-external-structs/18198/10 https://serde.rs/remote-derive.html https://doc.rust-lang.org/rust-by-example/trait/derive.html

andrusha commented 1 year ago

Might need to be compiler plugin to have access to the whole module codebase