Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. struct ImportantExcerpt<'a, 'b> {
  2. part_a: &'a str,
  3. part_b: &'b str,
  4. }
  5.  
  6. impl<'c, 'd> ImportantExcerpt<'c, 'd> {
  7. }
  8.  
  9. impl<'f> ImportantExcerpt<'f, 'f> {
  10.  
  11. }
  12.  
  13. impl<'g, 'h: 'g> ImportantExcerpt<'g, 'h> {
  14.  
  15.  
  16. }
  17.  
  18. // impl for the static lifetime
  19. impl ImportantExcerpt<'static, 'static> {
  20.  
  21. }
  22.  
  23. // when you don't need the names for anything else
  24. impl ImportantExcerpt<'_, '_> {
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement