pub struct ListNode {
pub val: i32,
pub next: Option<Box<ListNode>>,
}
Expand description
LeetCode 里常用到的链表节点结构
Fields§
§val: i32
§next: Option<Box<ListNode>>
Implementations§
Trait Implementations§
impl Eq for ListNode
impl StructuralPartialEq for ListNode
Auto Trait Implementations§
impl Freeze for ListNode
impl RefUnwindSafe for ListNode
impl Send for ListNode
impl Sync for ListNode
impl Unpin for ListNode
impl UnwindSafe for ListNode
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