We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
QueueView::split_const
QueueView
1 parent e282e0a commit 05ddff8Copy full SHA for 05ddff8
src/spsc.rs
@@ -557,13 +557,13 @@ impl<T> QueueView<T> {
557
/// use core::cell::RefCell;
558
///
559
/// use critical_section::Mutex;
560
- /// use heapless::spsc::{Consumer, Producer, Queue};
+ /// use heapless::spsc::{Consumer, Producer, Queue, QueueView};
561
562
/// static PC: (
563
/// Mutex<RefCell<Option<Producer<'_, ()>>>>,
564
/// Mutex<RefCell<Option<Consumer<'_, ()>>>>,
565
/// ) = {
566
- /// static mut Q: Queue<(), 4> = Queue::new();
+ /// static mut Q: &mut QueueView<()> = &mut Queue::<(), 4>::new();
567
/// // SAFETY: `Q` is only accessible in this scope.
568
/// #[allow(static_mut_refs)]
569
/// let (p, c) = unsafe { Q.split_const() };
0 commit comments