rx_core_observable_iterator

Crates.iorx_core_observable_iterator
lib.rsrx_core_observable_iterator
version0.2.0
created_at2026-01-19 10:12:32.895873+00
updated_at2026-01-24 15:02:50.611323+00
descriptioniterator observable for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054179
size11,007
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

observable_iterator

crates.io ci codecov license

This crate provides functionality to convert iterators into observables using the IntoIteratorObservableExt extension trait.

See Also

Features

  • Extension Trait: IntoIteratorObservableExt provides the into_observable() method for any type that implements IntoIterator + Clone
  • Universal Support: Works with ranges, vectors, arrays, and any other iterator type
  • No Conflicts: Uses an extension trait approach to avoid conflicts with the main IntoObservable trait

Usage

use 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"));

Examples

cargo run -p rx_core --example observable_iterator_into_example
cargo run -p rx_core --example observable_iterator_example
Commit count: 652

cargo fmt