Guest User

Untitled

a guest
Jul 17th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. use std::marker;
  2.  
  3. #[derive(Debug)]
  4. struct Key<T> {
  5. idx: u32,
  6. version: u32,
  7. _marker: marker::PhantomData<*const T>,
  8. }
  9.  
  10. #[derive(Debug)]
  11. struct Node<T> {
  12. value: T,
  13. head: Key<Node<T>>,
  14. tail: Key<Node<T>>,
  15. }
  16.  
  17. fn main() {
  18.  
  19. }
Add Comment
Please, Sign In to add comment