irox-tools 0.11.1

Stuff that should have been in the Rust STL, but aren't
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
// SPDX-License-Identifier: MIT
// Copyright 2025 IROX Contributors
//

///
/// Basic iterator trait that allows the borrowing of inner items with mapped lifetimes.
pub trait LendingIterator {
    type Item<'a>
    where
        Self: 'a;

    fn next_ref(&mut self) -> Option<Self::Item<'_>>;
}