Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- struct Foo(std::vec::Vec<u8>);
- struct Bar<'foo> {
- foo: &'foo Foo,
- iter: std::slice::Iter<'foo, u8>,
- }
- impl Foo {
- fn iter<'foo>(&'foo self) -> Bar<'foo> {
- Bar {
- foo: self,
- iter: self.0.iter(),
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement