This site does not allow itself to be embedded. You can still read it on the original site — the toolbar below keeps your place in the directory.
I know Rust is still pretty niche, so consider this piece of idiomatic Typescript: const client = this .clients.get(user_id); if (client) { client.status = ClientStatus.Disconnected; } A Rust version: self .clients.get_mut(&user_id).map(|client| { client.status = ClientStatus::Disconnected; }); Excuse the fact that this might not be idiomatic Rust, but I think it’s profound. In other languages I…
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.