use std::{ptr, sync::atomic::AtomicPtr}; pub struct LinkedList { head: AtomicPtr>, } struct Node { next: AtomicPtr>, } impl LinkedList { pub fn new() -> Self { Self { head: AtomicPtr::new(ptr::null_mut()), } } }