pub struct ListHead {
pub next: *mut ListHead,
pub prev: *mut ListHead,
}Fields§
§next: *mut ListHead§prev: *mut ListHeadImplementations§
Source§impl ListHead
impl ListHead
pub const fn new() -> ListHead
pub fn init_list_head(&mut self)
pub unsafe fn list_add(&mut self, new: &mut ListHead)
pub unsafe fn list_add_tail(&mut self, new: &mut ListHead)
pub unsafe fn list_del(&mut self)
pub unsafe fn list_del_init(&mut self)
pub fn list_empty(&self) -> bool
pub fn list_is_singular(&self) -> bool
pub unsafe fn list_join(&mut self, other: &mut ListHead)
pub unsafe fn list_split(&mut self, other: &mut ListHead)
Auto Trait Implementations§
impl Freeze for ListHead
impl RefUnwindSafe for ListHead
impl !Send for ListHead
impl !Sync for ListHead
impl Unpin for ListHead
impl UnwindSafe for ListHead
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