/top/
/new/
/best/
/ask/
/show/
/job/
^
slacker news
login
about
←back to thread
Matt Godbolt sold me on Rust by showing me C++
(www.collabora.com)
611 points
LorenDB
| 1 comments |
06 May 25 17:51 UTC
|
HN request time: 0.277s
|
source
Show context
nyanpasu64
◴[
06 May 25 22:20 UTC
]
No.
43910223
[source]
▶
>>43907820 (OP)
#
The problem I've always had with unit type wrappers is you can't convert between a &[f32] and a &[Amplitude<f32>] like you can convert a single scalar value.
replies(2):
>>43910307
#
>>43912786
#
1.
fvncc
◴[
06 May 25 22:30 UTC
]
No.
43910307
[source]
▶
>>43910223
#
There are libraries that help with these conversions. See e.g.:
https://docs.rs/bytemuck/latest/bytemuck/trait.TransparentWr...
ID:
GO
↑