ijson in Rust » commentshttps://softwaremaniacs.org/blog/2015/04/15/ijson-in-rust/en/2015-07-30T22:49:28.325118-07:00Ivan Sagalaev on programming and web developmenthttp://softwaremaniacs.org/media/sm_org/style/photo.jpgIvan Sagalaev на "ijson in Rust"
2015-07-30T22:49:28.325118-07:00Ivan Sagalaevhttps://softwaremaniacs.org/blog/2015/04/15/ijson-in-rust/en/#comment-494410Maxime, thanks! That's useful indeed!
<p>Maxime, thanks! That's useful indeed!Maxime A. DIDIER на "ijson in Rust"
2015-07-30T11:42:29-07:00Maxime A. DIDIERhttps://softwaremaniacs.org/blog/2015/04/15/ijson-in-rust/en/#comment-494408As of rust 1.1, vector.extend actually accepts any value that implements IntoIterator. This includes slices, vectors, iterators, optionals, even your own types if Iterator is implemented for those. The list of built-in IntoIterator implentations can be found here.
<p>As of rust 1.1, vector.extend actually accepts any value that implements IntoIterator. This includes slices, vectors, iterators, optionals, even your own types if Iterator is implemented for those. The list of built-in IntoIterator implentations can be found <a href="https://doc.rust-lang.org/stable/std/iter/trait.IntoIterator.html">here</a>.kriomant на "ijson in Rust"
2015-04-15T18:44:56.866578-07:00kriomanthttps://softwaremaniacs.org/blog/2015/04/15/ijson-in-rust/en/#comment-494377In fact, rust has lifetime parameters for structs, so it must possible to use slice in iterator.
<p>In fact, rust has lifetime parameters for structs, so it must possible to use slice in iterator.