From ec68c0209227dd371b8f1c86890575eac0277695 Mon Sep 17 00:00:00 2001 From: Christian Cunningham Date: Tue, 23 Aug 2022 21:46:55 -0700 Subject: FIFO Queue --- src/util/lifo_queue.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/util/lifo_queue.rs') 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 } } -- cgit v1.2.1