#[repr(C)]pub struct list_node {
pub next: *mut list_node,
}
Expand description
@brief List node structure
Used as is as reference to a list, or as member of any data structure that should be member of a list.
Actual list objects should have a @c list_node_t as member and then use the container_of() macro in list operations. See @ref thread_add_to_list() as example.
Fields§
§next: *mut list_node
< pointer to next list entry
Trait Implementations§
impl Copy for list_node
Auto Trait Implementations§
impl RefUnwindSafe for list_node
impl !Send for list_node
impl !Sync for list_node
impl Unpin for list_node
impl UnwindSafe for list_node
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