This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //This trait is not used, but is useful for type equality constraints | |
| trait ID { | |
| type Out; | |
| } | |
| impl<T> ID for T { | |
| type Out = T; | |
| } | |
| trait CanApply { | |
| type Out: CanUnapply; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //This trait is not used, but is useful for type equality constraints | |
| trait ID { | |
| type Out; | |
| } | |
| impl<T> ID for T { | |
| type Out = T; | |
| } | |
| trait CanApply { | |
| type Out: CanUnapply; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| trait Apply { | |
| type Out; | |
| } | |
| trait Unapply { | |
| type Out; | |
| } | |
| type Applied<F, T> = <(F, T) as Apply>::Out; | |
| type Unapplied<T> = <T as Unapply>::Out; |
NewerOlder