Rename SplineIterator into Iter.

This commit is contained in:
Dimitri Sabadie 2018-08-05 01:14:55 +02:00
parent 81ffaa8fbf
commit c4a6d702fa
No known key found for this signature in database
GPG Key ID: DE58C386A8DB2883

View File

@ -160,12 +160,12 @@ impl<T> Spline<T> {
}
/// Iterator over spline keys.
pub struct SplineIterator<'a, T> where T: 'a {
pub struct Iter<'a, T> where T: 'a {
anim_param: &'a Spline<T>,
i: usize
}
impl<'a, T> Iterator for SplineIterator<'a, T> {
impl<'a, T> Iterator for Iter<'a, T> {
type Item = &'a Key<T>;
fn next(&mut self) -> Option<Self::Item> {
@ -181,10 +181,10 @@ impl<'a, T> Iterator for SplineIterator<'a, T> {
impl<'a, T> IntoIterator for &'a Spline<T> {
type Item = &'a Key<T>;
type IntoIter = SplineIterator<'a, T>;
type IntoIter = Iter<'a, T>;
fn into_iter(self) -> Self::IntoIter {
SplineIterator {
Iter {
anim_param: self,
i: 0
}