summaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
authorChristian Cunningham <c@localhost>2022-08-26 19:28:41 -0700
committerChristian Cunningham <c@localhost>2022-08-26 19:28:41 -0700
commit4b940520d5395ceb73ba3cb9706fc89039708626 (patch)
tree062ad21b61d0621745e06acf200aa8628a11ddca /src/util
parent1516372cf6ad6829fa846f1cd49110cc8dad1962 (diff)
Fix mutex acquire
Diffstat (limited to 'src/util')
-rw-r--r--src/util/queue.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/util/queue.rs b/src/util/queue.rs
index 56122f7..ac23011 100644
--- a/src/util/queue.rs
+++ b/src/util/queue.rs
@@ -1,8 +1,14 @@
+//! # Queue type
use super::node::Node;
+/// # Queue Trait
pub trait Queue<'a> {
+ /// # Data encapsulated
type Data;
+ /// # Initialize
fn init(&self);
+ /// # Pop
fn pop(&self) -> Option<&mut Node<'a, Self::Data>>;
+ /// # Push
fn push(&self, freed_item: &mut Node<'a, Self::Data>);
}