Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExactSize is now ExactSizeIterator #31

Merged
merged 1 commit into from Nov 27, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 3 additions & 3 deletions phf/src/map.rs
Expand Up @@ -146,7 +146,7 @@ impl<'a, K, V> DoubleEndedIterator<&'a (K, V)> for Entries<'a, K, V> {
}
}

impl<'a, K, V> ExactSize<&'a (K, V)> for Entries<'a, K, V> {}
impl<'a, K, V> ExactSizeIterator<&'a (K, V)> for Entries<'a, K, V> {}

/// An iterator over the keys in a `Map`.
pub struct Keys<'a, K:'a, V:'a> {
Expand All @@ -169,7 +169,7 @@ impl<'a, K, V> DoubleEndedIterator<&'a K> for Keys<'a, K, V> {
}
}

impl<'a, K, V> ExactSize<&'a K> for Keys<'a, K, V> {}
impl<'a, K, V> ExactSizeIterator<&'a K> for Keys<'a, K, V> {}

/// An iterator over the values in a `Map`.
pub struct Values<'a, K:'a, V:'a> {
Expand All @@ -192,4 +192,4 @@ impl<'a, K, V> DoubleEndedIterator<&'a V> for Values<'a, K, V> {
}
}

impl<'a, K, V> ExactSize<&'a V> for Values<'a, K, V> {}
impl<'a, K, V> ExactSizeIterator<&'a V> for Values<'a, K, V> {}
6 changes: 3 additions & 3 deletions phf/src/ordered_map.rs
Expand Up @@ -175,7 +175,7 @@ impl<'a, K, V> RandomAccessIterator<&'a (K, V)> for Entries<'a, K, V> {
}
}

impl<'a, K, V> ExactSize<&'a (K, V)> for Entries<'a, K, V> {}
impl<'a, K, V> ExactSizeIterator<&'a (K, V)> for Entries<'a, K, V> {}

/// An iterator over the keys in a `OrderedMap`.
pub struct Keys<'a, K:'a, V:'a> {
Expand Down Expand Up @@ -208,7 +208,7 @@ impl<'a, K, V> RandomAccessIterator<&'a K> for Keys<'a, K, V> {
}
}

impl<'a, K, V> ExactSize<&'a K> for Keys<'a, K, V> {}
impl<'a, K, V> ExactSizeIterator<&'a K> for Keys<'a, K, V> {}

/// An iterator over the values in a `OrderedMap`.
pub struct Values<'a, K:'a, V:'a> {
Expand Down Expand Up @@ -241,4 +241,4 @@ impl<'a, K, V> RandomAccessIterator<&'a V> for Values<'a, K, V> {
}
}

impl<'a, K, V> ExactSize<&'a V> for Values<'a, K, V> {}
impl<'a, K, V> ExactSizeIterator<&'a V> for Values<'a, K, V> {}
2 changes: 1 addition & 1 deletion phf/src/ordered_set.rs
Expand Up @@ -146,5 +146,5 @@ impl<'a, T> RandomAccessIterator<&'a T> for Entries<'a, T> {
}
}

impl<'a, T> ExactSize<&'a T> for Entries<'a, T> {}
impl<'a, T> ExactSizeIterator<&'a T> for Entries<'a, T> {}

2 changes: 1 addition & 1 deletion phf/src/set.rs
Expand Up @@ -120,6 +120,6 @@ impl<'a, T> DoubleEndedIterator<&'a T> for Items<'a, T> {
}
}

impl<'a, T> ExactSize<&'a T> for Items<'a, T> {}
impl<'a, T> ExactSizeIterator<&'a T> for Items<'a, T> {}