Skip to content

Generic usage of "assert impl"? Why is assert_impl not public? #61

@bluenote10

Description

@bluenote10

I'm trying to figure out if it is possible to use the "assert impl" macro family in a generic way. Something like:

static_assertions::assert_impl_all!(for(T) MyType<T>: SomeTrait);

It looks like assert_impl_all or assert_impl_any do not allow this kind of generic syntax, but looking at the internal tests it seems that the private assert_impl macro does. Would it be possible to make assert_impl public to enable such generic usages publicly?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions