Need review on my `remove()` implementation for singly linked lists

This page summarizes the projects mentioned and recommended in the original post on /r/rust

InfluxDB - Purpose built for real-time analytics at any scale.
InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Here's the who code and it compiles. https://github.com/UtkarshVerma/data-structures-in-rust/blob/main/src/singly_linked_list.rs

  • InfluxDB

    Purpose built for real-time analytics at any scale. InfluxDB Platform is powered by columnar analytics, optimized for cost-efficient storage, and built with open data standards.

    InfluxDB logo
  • too-many-lists

    Learn Rust by writing Entirely Too Many linked lists

    I started learning Rust and like how the compiler is fussy about things. My plan was to implement the data structures I knew, but I got stuck at the singly linked list's remove() method. I've read the book as well, but I have no clue how to simplify this further:

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Rainfrog – a database management TUI for Postgres

    1 project | news.ycombinator.com | 16 Sep 2024
  • Nyxpsi – A Next-Gen Network Protocol for Extreme Packet Loss

    1 project | news.ycombinator.com | 16 Sep 2024
  • Dilib-rs – A dependency injection library for Rust

    1 project | news.ycombinator.com | 16 Sep 2024
  • Do Not Sign the Qt License Agreement Unchanged

    1 project | news.ycombinator.com | 16 Sep 2024
  • Show HN: Oryx – TUI for sniffing network traffic using eBPF

    1 project | news.ycombinator.com | 16 Sep 2024