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.
1 parent f9738a4 commit 279e563Copy full SHA for 279e563
src/queue/mod.rs
@@ -1,13 +1,17 @@
1
+use core::marker::PhantomPinned;
2
+
3
/// Represents a struct produced by `TAILQ_HEAD`.
4
#[repr(C)]
5
pub struct TailQueue<T> {
6
pub first: *mut T, // tqh_first
7
pub last: *mut *mut T, // tqh_last
8
+ pub pin: PhantomPinned,
9
}
10
11
/// Represents a struct produced by `TAILQ_ENTRY`.
12
13
pub struct TailQueueEntry<T> {
14
pub next: *mut T, // tqe_next
15
pub prev: *mut *mut T, // tqe_prev
16
17
0 commit comments