Posts by Jhynjhiruu@toot.wales
(DIR) Post #AjXLkq53AQ1KQ6LfQO by Jhynjhiruu@toot.wales
2024-07-03T00:35:13Z
0 likes, 0 repeats
@foone I like to connect two of the pins to act as UART and configure the SDK to do C stdio over that (there's a CMake function for it)
(DIR) Post #Aju5XdEbUCg6oSp5dI by Jhynjhiruu@toot.wales
2024-07-13T23:27:10Z
0 likes, 0 repeats
@foone much wailing and gnashing of teeth, generally
(DIR) Post #Aju62Lttz12K1umxLU by Jhynjhiruu@toot.wales
2024-07-13T23:31:42Z
0 likes, 0 repeats
@foone https://doc.rust-lang.org/stable/std/iter/index.html#implementing-iteratorUse the standard library documentation where you can; it's great. https://docs.rs/std/ is a shortcut to it.
(DIR) Post #Aju9f9Oyge12QDW4Dw by Jhynjhiruu@toot.wales
2024-07-14T00:33:40Z
0 likes, 0 repeats
@foone you get used to lifetime syntax after a while, but it's definitely one of my least liked bits of Rust
(DIR) Post #AjuAmahbgNsB4eLERc by Jhynjhiruu@toot.wales
2024-07-14T00:45:50Z
0 likes, 0 repeats
@foone well, if it's the Vec<Command> you want to iterate over, you could impl IntoIterator to just pass through the Vec's
(DIR) Post #Ak8Jggx99JkUWUJL3g by Jhynjhiruu@toot.wales
2024-07-20T20:36:33Z
0 likes, 0 repeats
@foone BinWrite (or, certainly, its rewritten replacement BinRW, which I think is mostly drop-in) supports writing enums directly.
(DIR) Post #AkVQQ69XN7204SDfpg by Jhynjhiruu@toot.wales
2024-08-01T00:10:27Z
0 likes, 0 repeats
@foone tkinter. Use tkinter for it. Every comment about anything other than tkinter misunderstands the problem you are trying to solve. tkinter is what you want for this.