These are chat archives for rust-lang/rust
(73,60,70)in Scala but
(73,59,72)in Rust. The pixels are undoubtedly indistinguishable with the naked eye. But why aren't they the same? I get that JPEG is lossy, but that should only affect the product of a WRITE, but here I'm comparing the product of READs of two different libraries (one of which happens to be for a different programming language). Anyone know why this might be? Or should I take my talents to an image processing Gitter? :D
(76,58,72)! So a third outcome!
but that should only affect the product of a WRITE
Not really - JPEG doesn't store pixels (in the same sense as BMP / PNG / ... do), and so decoding itself is lossy.
main()run as expected, but if I nest the objects, it won't compile, citing a missing implementation. Is there any way of making this work in general? Or do we need to implement the specific type indicated?
struct Wrapper(Vec<SomeType>), what's the idiomatic way to access the inner vec? just making it pub and doing
Vecyou wouldn't want to make it public.