| Crates.io | rx_core_observable_iterator |
| lib.rs | rx_core_observable_iterator |
| version | 0.2.0 |
| created_at | 2026-01-19 10:12:32.895873+00 |
| updated_at | 2026-01-24 15:02:50.611323+00 |
| description | iterator observable for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054179 |
| size | 11,007 |
This crate provides functionality to convert iterators into observables using the IntoIteratorObservableExt extension trait.
IntoIteratorObservableExt provides the into_observable() method for any type that implements IntoIterator + CloneIntoObservable traituse rx_core::prelude::*;
// Convert ranges into observables
(1..=5).into_observable::<()>().subscribe(PrintObserver::new("range"));
// Convert vectors into observables
vec![1, 2, 3].into_observable::<()>().subscribe(PrintObserver::new("vector"));
// Convert arrays into observables
[10, 20, 30].into_observable::<()>().subscribe(PrintObserver::new("array"));
cargo run -p rx_core --example observable_iterator_into_example
cargo run -p rx_core --example observable_iterator_example