Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
Rohansi
· 1y ago · 0 comments
The restriction in C# comes from its ability to reference stack allocated memory. I'm not familiar with Rust but it probably figures it out based on the lifetime of T.
Comments
[–]
Measter
1y ago
It's not the lifetime of T, but the lifetime of whatever is storing T.