Welcome to Software Development on Codidact!
Will you help us build our independent community of developers helping developers? We're small and trying to grow. We welcome questions about all aspects of software development, from design to code to QA and more. Got questions? Got answers? Got code you'd like someone to review? Please join us.
Activity for wizzwizz4
Type | On... | Excerpt | Status | Date |
---|---|---|---|---|
Edit | Post #278072 | Post edited | — | about 4 years ago |
Comment | Post #278072 |
Why does it need to be `Sized`? (more) |
— | about 4 years ago |
Suggested Edit | Post #278072 |
Suggested edit: Copied TIO code into answer. (more) |
helpful | about 4 years ago |
Edit | Post #277411 | Initial revision | — | over 4 years ago |
Question | — |
How can I define a method on [&mut T] where T: MyTrait? I'm trying to make a trait method callable on mutable slices of a type implementing that trait (see `main`). Rust doesn't like me for it. ```rust use core::convert::AsMut; trait A { type B; fn f(m: &mut [Self], b: Self::B); } impl]>> M { fn f(&mut self, b: B) { A::f... (more) |
— | over 4 years ago |