#[repr(C)]pub struct pm_list_t {
pub size: usize,
pub head: *mut pm_list_node_t,
pub tail: *mut pm_list_node_t,
}
Expand description
This represents the overall linked list. It keeps a pointer to the head and tail so that iteration is easy and pushing new nodes is easy.
Fields§
§size: usize
The size of the list.
head: *mut pm_list_node_t
A pointer to the head of the list.
tail: *mut pm_list_node_t
A pointer to the tail of the list.
Trait Implementations§
impl Copy for pm_list_t
Auto Trait Implementations§
impl Freeze for pm_list_t
impl RefUnwindSafe for pm_list_t
impl !Send for pm_list_t
impl !Sync for pm_list_t
impl Unpin for pm_list_t
impl UnwindSafe for pm_list_t
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