ryo33 / enum_downcast

Safe downcasting for enums
3 stars 0 forks source link

From integration? #5

Closed dzmitry-lahoda closed 1 month ago

dzmitry-lahoda commented 1 month ago

anyhow support automatic downcast on several layers if From implemented

https://play.rust-lang.org/?version=stable&mode=debug&edition=2021&gist=dd4dae5afb75df2c5f212bdf423f9d7d

ryo33 commented 1 month ago

Could you provide more detailed context that you expect to utilize the From trait? Generally, using enum_downcast with such crates like derive_more which provides a From derive macro should work as expected.