diff options
| author | Christian Cunningham <c@localhost> | 2022-08-26 19:28:41 -0700 |
|---|---|---|
| committer | Christian Cunningham <c@localhost> | 2022-08-26 19:28:41 -0700 |
| commit | 4b940520d5395ceb73ba3cb9706fc89039708626 (patch) | |
| tree | 062ad21b61d0621745e06acf200aa8628a11ddca /src/util/queue.rs | |
| parent | 1516372cf6ad6829fa846f1cd49110cc8dad1962 (diff) | |
Fix mutex acquire
Diffstat (limited to 'src/util/queue.rs')
| -rw-r--r-- | src/util/queue.rs | 6 |
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>); } |
