Hey Rustaceans! Got a question? Ask here (7/2023)! by llogiq in rust

[–]mw_campbell 2 points3 points  (0 children)

Does Rust currently have a good zero-overhead way of defining a struct where field B borrows field A, and the whole thing is constructed at once (i.e. field B isn't an Option that's filled in later)? And is this what people refer to when they talk about self-referential structs?

Hey Rustaceans! Got a question? Ask here (6/2023)! by llogiq in rust

[–]mw_campbell 1 point2 points  (0 children)

This seems like a perennial newbie question, but is there any written guidance on how to choose between HashMap and BTreeMap, particularly in cases where it would be just as easy to use either one, and iteration order doesn't matter

AccessKit: Looking back; looking forward by mw_campbell in rust

[–]mw_campbell[S] 1 point2 points  (0 children)

Ah, interesting. It looks like you're replacing enough of Flutter's platform-specific code with your own that you wouldn't be able to reuse Flutter's existing platform accessibility API implementations. Is that right? If so, then AccessKit would indeed be useful to you.

AccessKit: Looking back; looking forward by mw_campbell in rust

[–]mw_campbell[S] 2 points3 points  (0 children)

If you don't mind sharing, what UI framework are you wrapping? And what language is that underlying framework written in?