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.
Rust for Swift devs: The type system, Part 2. Swift's throws and Rust's Result<T, E> are two presentations of the same idea. The second post in the Rust-for-Swift-devs series translates throws, try, and do/catch into the Result type, the ? operator, and the From/Into conversion machinery, then covers thiserror, anyhow, and when to panic.
Comments
Nothing yet. Say the first thing.
Sign in to join the conversation.