Skip to content

Instantly share code, notes, and snippets.

@cocuh
Created May 13, 2016 14:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cocuh/9d521d86afbf11f25a29fe2173a24654 to your computer and use it in GitHub Desktop.
Save cocuh/9d521d86afbf11f25a29fe2173a24654 to your computer and use it in GitHub Desktop.
trait Queue<T> {
}
struct FifoQueue<T>{
data: Vec<T>
}
struct JobQueue<J, Q=FifoQueue<J>> {
queue: Q,
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment