Struct kernel::list::ListLinksSelfPtr
source · #[repr(C)]pub struct ListLinksSelfPtr<T: ?Sized, const ID: u64 = 0> {
pub inner: ListLinks<ID>,
/* private fields */
}
Expand description
Fields§
§inner: ListLinks<ID>
The ListLinks
field inside this value.
This is public so that it can be used with impl_has_list_links!
.
Implementations§
source§impl<T: ?Sized, const ID: u64> ListLinksSelfPtr<T, ID>
impl<T: ?Sized, const ID: u64> ListLinksSelfPtr<T, ID>
sourcepub unsafe fn raw_get_self_ptr(me: *const Self) -> *const Opaque<*const T>
pub unsafe fn raw_get_self_ptr(me: *const Self) -> *const Opaque<*const T>
Returns a pointer to the self pointer.
§Safety
The provided pointer must point at a valid struct of type Self
.
Trait Implementations§
impl<T: ?Sized + Send, const ID: u64> Send for ListLinksSelfPtr<T, ID>
impl<T: ?Sized + Sync, const ID: u64> Sync for ListLinksSelfPtr<T, ID>
Auto Trait Implementations§
impl<T, const ID: u64 = 0> !Freeze for ListLinksSelfPtr<T, ID>
impl<T, const ID: u64 = 0> !RefUnwindSafe for ListLinksSelfPtr<T, ID>
impl<T, const ID: u64 = 0> !Unpin for ListLinksSelfPtr<T, ID>
impl<T: ?Sized, const ID: u64> UnwindSafe for ListLinksSelfPtr<T, ID>where
T: RefUnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T> PinInit<T> for T
impl<T> PinInit<T> for T
source§unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
unsafe fn __pinned_init(self, slot: *mut T) -> Result<(), Infallible>
Initializes
slot
. Read more