rx_core_operator_map_into

Crates.iorx_core_operator_map_into
lib.rsrx_core_operator_map_into
version0.2.0
created_at2026-01-19 16:48:12.803772+00
updated_at2026-01-24 15:08:08.61806+00
descriptionmap_into operator for rx_core
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2054949
size14,710
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

operator_map_into

crates.io ci codecov license

Map each value using Into.

See Also

Example

cargo run -p rx_core --example operator_map_into_example
#[derive(Debug)]
pub struct Foo(pub i32);

impl From<i32> for Foo {
  fn from(value: i32) -> Self {
    Foo(value)
  }
}

let _subscription = (1..=5)
    .into_observable()
    .map_into()
    .subscribe(PrintObserver::<Foo>::new("into_operator"));

Output:

into_operator - next: Foo(1)
into_operator - next: Foo(2)
into_operator - next: Foo(3)
into_operator - next: Foo(4)
into_operator - next: Foo(5)
into_operator - completed
into_operator - unsubscribed
Commit count: 652

cargo fmt