summaryrefslogtreecommitdiff
path: root/src/util/queue.rs
blob: b9e6edce3c35bf5c8867841c22af0e85142fe53d (plain)
1
2
3
4
5
6
7
8
use super::node::Node;
pub trait Queue<'a> {
    type Data;

    fn init(&self);
    fn pop(&self) -> Option<&mut Node<'a,Self::Data>>;
    fn push(&self, freed_item: &mut Node<'a,Self::Data>);
}