Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
jiwangcdi
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
jiwangcdi
2y ago
So abstraction is still a point, but Rust cares about memory layout as well.
2.
▲
by
jiwangcdi
2y ago
Then if Path is not about abstraction, why not use a raw byte slice like &[u8]
3.
▲
by
jiwangcdi
2y ago
> The next noisy element is the <P: AsRef<Path>> constraint. It is needed because Rust loves exposing physical layout of bytes in memory as an interface, specifically for cases where that brings performance. In particular, th