#![cfg_attr(not(feature = "std"), no_std)]
#![allow(async_fn_in_trait)]
#![forbid(unsafe_code, future_incompatible)]
#![deny(missing_debug_implementations, nonstandard_style)]
#![warn(missing_docs)]
mod extend;
mod from_iterator;
mod into_iterator;
mod iter;
mod lending_iter;
pub use from_iterator::FromIterator;
pub use into_iterator::IntoIterator;
pub use lending_iter::LendingIterator;
pub use iter::{Iterator, Lend, LendMut, Map};
pub mod prelude {
pub use crate::extend::Extend;
pub use crate::from_iterator::FromIterator;
pub use crate::into_iterator::IntoIterator;
}
#[cfg(feature = "alloc")]
extern crate alloc as std;
#[cfg(all(test, feature = "alloc"))]
mod test {
pub use super::*;
#[test]
fn smoke() {
#[allow(dead_code)]
async fn foo(iter: impl Iterator<Item = u32>) {
let _v: Vec<_> = iter.collect().await;
}
}
}