keltia / fetiche-rs

Rust crates for managing Surveillance data — ingress/egress formats for ECTL
MIT License
1 stars 1 forks source link

Use enum_dispatch to get rid of trait objects. #32

Open keltia opened 2 months ago

keltia commented 2 months ago

Right now, Fetchable and Streamable traits are used through trait objects and thus enable dynamic (aka runtime) dispatch. It might be useful and less complex to use enum_dispatch to switch to static (aka compile-time) dispatch.

To be explored.