Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Post History
When using Result or Option to get a value, the value is wrapped in a Ok or Some. For example, with pattern matching to get a Result: let var: Json = match serde_json::from_str(&my_string) { ...
#1: Initial revision
Are generic enums completely abstract?
When using `Result` or `Option` to get a value, the value is wrapped in a `Ok` or `Some`. For example, with pattern matching to get a `Result`: let var: Json = match serde_json::from_str(&my_string) { Ok(a) => a, Err(e) => return e, }; Will there be any representation of the `Ok`, `Err`, `Some`, or `None` in the machine code of the compiled program, or are they completely abstract mechanisms within the language?