Project Scope and ToDos
- Pull public-marked notes from the notebook to the new repo
- Create website that treats them like a wiki and links pages together
- Support the basic YAML in https://github.com/AramZS/notebook/blob/main/README.md
Ok, let's play around with Rust some more and see what we can figure out while futzing around blind. We have to figure out how to handle this object.
[src/main.rs:91] yaml_test_result = Ok(
Ok is a way to handle error checking. Useful info on how to deal with it here. It looks like I want to check it, then
unwrap() it. Ok. I also have to remove the first
dbg! because it takes ownership of the
Next, what to do with
Some? It appears to be a way to return a legitimate response from a function when it could also potentially respond with a null value, since there isn't another way to hold that according to stack overflow. Rust has some useful tools for processing
Some it seems!
Ending the expression with ? will result in the Some’s unwrapped value, unless the result is None, in which case None is returned early from the enclosing function.
Hmmmm. That's not quite right. It looks like we probably need to further unwrap it? Perhaps with
unwrap_or_else? Hmmmm, not sure how to use that. I could just
unwrap again and deal with the Hash, but that probably isn't good handling.
git commit -am "Continuing to figure out rust"