-
Notifications
You must be signed in to change notification settings - Fork 12
Type equality? #8
Copy link
Copy link
Open
Description
You mention in the README that you couldn't get type equality to work. I was curious to know what kind of things you've tried.
Just in case you hadn't seen it, there's a trick described here that seems relevant:
trait Id {
type X;
}
impl<T> Id for T {
type X = T;
}Then you can use where T: Id<X=U> that functions like where T == U.
Using this and specialization, I'm under the impression that you could implement if T == U in your language.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels