core: Forward ExactSizeIterator::is_empty for Bytes

This commit is contained in:
Ulrik Sverdrup 2016-12-03 21:43:51 +01:00
parent 2cdbd5eb42
commit dd3e63aea5

View File

@ -618,6 +618,11 @@ impl<'a> ExactSizeIterator for Bytes<'a> {
fn len(&self) -> usize {
self.0.len()
}
#[inline]
fn is_empty(&self) -> bool {
self.0.is_empty()
}
}
#[unstable(feature = "fused", issue = "35602")]