Skip to content

Make impl_erased_set public #7

@malobre

Description

@malobre

Ideally, making the impl_erased_set public would allow users to create sets with arbitrary bounds, e.g:

impl_erased_set! {
    #[derive(Debug, Default, Clone)]
    pub struct MyErasedSet: Any + Clone + Debug;
}

Unfortunately, trait objects for multiple traits (i.e: dyn Any + Clone + Debug in this case) is currently not possible (see rust-lang/rfcs#2035).

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions