core: Forward ExactSizeIterator::is_empty for Bytes
This commit is contained in:
parent
2cdbd5eb42
commit
dd3e63aea5
1 changed files with 5 additions and 0 deletions
|
@ -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")]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue