Guest User

Untitled

a guest
May 26th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. trait MyTrait<I, O> : Fn(I) -> O {
  2. type MyType;
  3.  
  4. fn my_method(&self);
  5. }
  6.  
  7. impl<F, I, O> MyTrait<I, O> for F
  8. where
  9. F: Fn(I) -> O,
  10. {
  11. type MyType = F::Output;
  12.  
  13. fn my_method(&self) {}
  14.  
  15.  
  16. }
  17.  
  18. fn main() {}
Add Comment
Please, Sign In to add comment