Lines Matching defs:Self
33 pub fn new() -> impl PinInit<Self> {
34 pin_init!(&this in Self {
43 pub fn insert_next(list: &ListHead) -> impl PinInit<Self> + '_ {
44 pin_init!(&this in Self {
52 pub fn insert_prev(list: &ListHead) -> impl PinInit<Self> + '_ {
53 pin_init!(&this in Self {
61 pub fn next(&self) -> Option<NonNull<Self>> {
65 Some(unsafe { NonNull::new_unchecked(self.next.as_ptr() as *mut Self) })
84 fn drop(self: Pin<&mut Self>) {
106 unsafe fn new_unchecked(ptr: NonNull<ListHead>) -> Self {
107 Self(Cell::new(ptr))