diff options
| author | Christian Cunningham <c@localhost> | 2022-08-23 21:46:55 -0700 |
|---|---|---|
| committer | Christian Cunningham <c@localhost> | 2022-08-23 21:46:55 -0700 |
| commit | ec68c0209227dd371b8f1c86890575eac0277695 (patch) | |
| tree | 8e9a7b6a511811b78d0245787c59d7e1b3c23081 /src/util/lifo_queue.rs | |
| parent | 402679b6ce98346a34660a3c96af6039051f4734 (diff) | |
FIFO Queue
Diffstat (limited to 'src/util/lifo_queue.rs')
| -rw-r--r-- | src/util/lifo_queue.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util/lifo_queue.rs b/src/util/lifo_queue.rs index 77d14d9..2fa7304 100644 --- a/src/util/lifo_queue.rs +++ b/src/util/lifo_queue.rs @@ -1,12 +1,11 @@ //! # Queue //! //! Queue structure -use crate::sync::interface::Mutex; use crate::sync::NullLock; +use crate::sync::interface::Mutex; use crate::util::node::*; use core::fmt; -use core::fmt::{Debug, Formatter}; -use core::marker::Sized; +use core::fmt::{Debug,Formatter}; /// # Initialize Queue /// - Name: Symbol name @@ -36,6 +35,7 @@ pub struct LifoQueue<'a, T: Sized, const COUNT: usize> { } impl<'a, T: Sized, const COUNT: usize> LifoQueue<'a, T, COUNT> { + /// # Create new Lifo Queue pub const fn new(initial: NullLock<[Node<'a, T>; COUNT]>) -> Self { Self { inner: initial } } |
