Are you interested in looking at the behind the new let guards? Share public link
pub trait Database async fn fetch_user(&self, id: u64) -> Option ; pub async fn process_data(db: &dyn Database, user_id: u64) { if let Some(user) = db.fetch_user(user_id).await { println!("Processing: {}", user.name); } } Use code with caution. announcing rust 1960
Why it matters: Less boilerplate lifetimes, fewer borrow-check puzzles, and clearer fixes lower the barrier for new Rust users and speed up development for experienced teams. Are you interested in looking at the behind