before a trait ?
impl !Trait for T means "uninplement this auto trait" and the ?Sized bound means that the type may or may not implement Sized (as Sized is an implicit trait bound for all generics)
thank you
so ? is only used with Sized trait ?
yes
🌻🌻
something like that? trait Callback { fn callback(&self) { println!("default callback implementation") } } and Parent and Child structs struct Parent {} im...
If a language manages to mix a lot of good things together in a harmonious way I should give it a good chance even if it looks kinda ugly sometimes. Because it's the features ...
I want to learn once and for all the the different between Mutex / Arc (and more generics for accessing), in async / sync access and lifetime. I think it's the most diffcult p...
Who uses coolify here ??
How to setup rust without visual studio?
Hi, why is a String literal mutable by default when declared. But not mutable by default when passed as argument to some function?
Hi! I have a question about developing cross-platform apps with Rust. I find it difficult to develop for macOS when I don't have one. (I've already tried Docker OSX/Cloud.) ...
Hello! I have a JSON file that looks like this: { title: "...", data: ....1TB of data } Is there a way with serde_json to deserialize only the title value without loading the...
How can I convert Option<Vec<Value>> into Vec<String>? (Value from serde_json) I tried this: let names: Vec<String> = names.unwrap_or_else(|| Vec::<Value>::new()).iter().map(|...
Can someone suggest to me a project idea to learn async programming? my main lang is rust but my past projects uses sync. I haven't touched async one bit.
Обсуждают сегодня