pub struct ListNode {
pub val: i32,
pub next: Option<Box<ListNode>>,
}Expand description
Definition for singly-linked list.
Fields§
§val: i32The value stored at this node
next: Option<Box<ListNode>>Links to the next node if it exists
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