rx_core_macro_observable_derive

Crates.iorx_core_macro_observable_derive
lib.rsrx_core_macro_observable_derive
version0.2.0
created_at2026-01-18 23:15:50.823883+00
updated_at2026-01-24 14:57:55.107131+00
descriptionrx_core observable derive, implements associated type only traits
homepagehttps://github.com/AlexAegis/rx_bevy
repositoryhttps://github.com/AlexAegis/rx_bevy
max_upload_size
id2053290
size8,676
Sandor (AlexAegis)

documentation

https://github.com/AlexAegis/rx_bevy

README

macro_observable_derive

crates.io ci codecov license

Helper macro to implement a few traits required for an observable.

Traits you still have to implement to get an observable

  • Observable

Traits Implemented

  • WithPrimaryCategory: Sets the associated type to PrimaryCategoryObservable
  • ObservableOutput: Sets the associated type Out to the value of the #[rx_out(...)] attribute, or to Never (Infallible) if missing. Also sets the associated OutError type to the value of the #[rx_out_error(...)] attribute, or to Never if missing.

Attributes

All attributes are prefixed with rx_ for easy auto-complete access.

  • #[rx_out(...)] (optional, default: Never): Defines the output type of the observable
  • #[rx_out_error(...)] (optional, default: Never): Defines the output error type of the observable

See Also

Expanding the proc macro

In case you want to inspect the output of the proc macro.

If you haven't installed cargo-expand yet, install it first:

cargo install cargo-expand

Then expand the macro output:

cargo expand -p rx_core_observable_interval
Commit count: 652

cargo fmt