Skip to content

Commit b67cabc

Browse files
committed
impl IntoIterator for Aligned
1 parent 4331da1 commit b67cabc

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/lib.rs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -470,6 +470,19 @@ where
470470
}
471471
}
472472

473+
impl<A, T> IntoIterator for Aligned<A, T>
474+
where
475+
A: Alignment,
476+
T: IntoIterator,
477+
{
478+
type IntoIter = T::IntoIter;
479+
type Item = T::Item;
480+
481+
fn into_iter(self) -> Self::IntoIter {
482+
self.value.into_iter()
483+
}
484+
}
485+
473486
#[test]
474487
fn sanity() {
475488
use core::mem;

0 commit comments

Comments
 (0)