Avatar
omochimetaru 8/3/2018 7:51 AM
API documentation for the Rust IntoIterator trait in crate std.
7:51 AM
One benefit of implementing IntoIterator is that your type will work with Rust's for loop syntax.
7:52 AM
とあるので、これがSwiftのSequence相当かな
7:52 AM
pub trait IntoIterator where <Self::IntoIter as Iterator>::Item == Self::Item, { type Item; type IntoIter: Iterator; fn into_iter(self) -> Self::IntoIter; }