std::convert::TryFrom has an associated type called Error and std::str::FromStr has an associated type called Err πŸ¦€oopsπŸ¦€
1
2
hmm, i have both a binary and library target in this crate, and cargo runs all the tests for each target, so it runs the tests twice can’t see if there’s a cfg attribute for targets so i can disable them in the source tho i can turn off the lib tests in cargo.toml
2
2
grump, bah, since when was this required, and where is this % thing documented? $ rustdoc doc/spec.md error: invalid markdown file: no initial lines starting with `# ` or `%`
1
2
while learning Rust i find i keep oscillating between hmm i should have a type for these values (lots of impl this and impl that) wow this is fiddly and annoying (delete lots of code)
1
1
3
next task is to learn rustdoc i tend to write docs when a project is reasonably settled and at the polishing stage; often the documentation tells me that my API or UI could do with improvements πŸ€ͺ
1
2
i drew the leap second clock when i was procrastinating about writing the functions that output the leap second list in my compact binary format
cursed clock
1
1
4
Oh and I should also get a fuzzer working, because there are too many parsers and serializers in this code (cargo fuzz? anything else worth trying?)
4
1
so rustdoc is nice and straightforward main Q i have is how to document trait implementations the most important functionality in my crate is in things like `impl FromStr` and `impl Display` i’ve explained this in the module docs since that seemed like the best place
2
3
i keep wanting ternary ?: in my rust because a full-fat if-else is so bulky
3
1
Replying to @fanf
I keep wanting if/else expressions in other languages because ?: is so easy to misread :D

May 10, 2021 Β· 9:42 PM UTC