ended6월 25일· 1 sources
Expected Option<String>, Got Option<()> — Here's Why
Why it matters
I'm learning Rust and recently ran into something unexpected with Option type. I expected r to be Option<&mut String> , but it came back as Option<()> instead. Here's what I tried: let mut vds = VecDe...
1
Sources
+0
24h
—
Growth
88d
Active