Lines Matching refs:me

200             unsafe fn view_links(me: *const Self) -> *mut $crate::list::ListLinks<$num> {
201 // SAFETY: The caller guarantees that `me` points at a valid value of type `Self`.
203 <Self as $crate::list::HasListLinks<$num>>::raw_get_list_links(me.cast_mut())
208 // * `me` originates from the most recent call to `prepare_to_insert`, which calls
216 unsafe fn view_value(me: *mut $crate::list::ListLinks<$num>) -> *const Self {
217 // SAFETY: `me` originates from the most recent call to `prepare_to_insert`, so it
220 $crate::container_of!(me, Self, $($field).*)
231 unsafe fn prepare_to_insert(me: *const Self) -> *mut $crate::list::ListLinks<$num> {
232 // SAFETY: The caller promises that `me` points at a valid value.
233 unsafe { <Self as $crate::list::ListItem<$num>>::view_links(me) }
237 // * `me` originates from the most recent call to `prepare_to_insert`, which calls
241 unsafe fn post_remove(me: *mut $crate::list::ListLinks<$num>) -> *const Self {
242 // SAFETY: `me` originates from the most recent call to `prepare_to_insert`, so it
245 $crate::container_of!(me, Self, $($field).*)
269 unsafe fn prepare_to_insert(me: *const Self) -> *mut $crate::list::ListLinks<$num> {
270 // SAFETY: The caller promises that `me` points at a valid value of type `Self`.
271 let links_field = unsafe { <Self as $crate::list::ListItem<$num>>::view_links(me) };
289 unsafe { ::core::ptr::write(cell_inner, me) };
299 unsafe fn view_links(me: *const Self) -> *mut $crate::list::ListLinks<$num> {
300 // SAFETY: The caller promises that `me` points at a valid value of type `Self`.
302 <Self as $crate::list::HasListLinks<$num>>::raw_get_list_links(me.cast_mut())
342 unsafe fn post_remove(me: *mut $crate::list::ListLinks<$num>) -> *const Self {
346 unsafe { <Self as $crate::list::ListItem<$num>>::view_value(me) }