If I am understanding Rust correctly, the move annotation specifies that the closure should take ownership of any free variables that appear therein. So that would mean that the function that…
Don't think I ever saw a response to
Whoops—I've now responded in that discussion.
currently in the code the only way to produce a SpecifiedValue is via the try_from operation on a string;
There's one more way: the from_empty_spec
method is public too.
if one wants…
- The meaning I intended was "the value specified by the empty string," rather than "the canonically specified absent value." I think this works fine in both of the places where the function is…
In assembly.rs, you put all of the sub-namespaces under a top-level item on a single line […], whereas here this has been spread across three lines. They should be consistent in format.
Good…
But I don't think you can pass a Flag() to something that wants a boolean, so this isn't too useful...
There are various ways to streamline the use of MyBranches
values in conditionals.…
For example, the expression
if true { 3 }
won't compile unless you add anelse
block to convince the compiler that it has the same type in all situations.
This is one advantage of using…