diff options
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 } } |
