pub struct ListNode {
pub val: i32,
pub next: Option<Box<ListNode>>,
}
Fields§
§val: i32
§next: Option<Box<ListNode>>
Implementations§
Trait Implementations§
Source§impl Ord for ListNode
impl Ord for ListNode
Source§impl PartialOrd for ListNode
impl PartialOrd for ListNode
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