| Crates.io | rx_core_operator_map_into |
| lib.rs | rx_core_operator_map_into |
| version | 0.2.0 |
| created_at | 2026-01-19 16:48:12.803772+00 |
| updated_at | 2026-01-24 15:08:08.61806+00 |
| description | map_into operator for rx_core |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2054949 |
| size | 14,710 |
Map each value using Into.
Never signals into concrete types.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