Skip to content

Structs with References, Lifetimes

Can enum_dispatch be applied to structs with reference-members? It appears from the source here that lifetimes are not supported. Is there some other way to provide these lifetimes and use reference-members?