| Crates.io | rx_core_macro_operator_derive |
| lib.rs | rx_core_macro_operator_derive |
| version | 0.2.0 |
| created_at | 2026-01-18 23:16:04.313134+00 |
| updated_at | 2026-01-24 14:58:02.966692+00 |
| description | rx_core operator derive, implements associated type only traits |
| homepage | https://github.com/AlexAegis/rx_bevy |
| repository | https://github.com/AlexAegis/rx_bevy |
| max_upload_size | |
| id | 2053292 |
| size | 9,947 |
Helper macro to implement a few traits required for an operator.
Operator or ComposableOperatorWithPrimaryCategory: Sets the associated type to PrimaryCategoryOperatorObserverInput: Sets the associated type In to the value of the
#[rx_in(...)] attribute, or to Never (Infallible) if missing. Also
sets the associated InError type to the value of the
#[rx_in_error(...)] attribute, or to Never if missing.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.All attributes are prefixed with
rx_for easy auto-complete access.
#[rx_in(...)] (optional, default: Never): Defines the input type of
the operator#[rx_in_error(...)] (optional, default: Never): Defines the input
error type of the operator#[rx_out(...)] (optional, default: Never): Defines the output type of
the operator; usually it's the same as the input type#[rx_out_error(...)] (optional, default: Never): Defines the output
error type of the operator; usually it's the same as the input error typeRxExecutor -
Derive macro for Executors.RxObservable -
Derive macro for Observables.RxObserver -
Derive macro for RxObservers.RxScheduler -
Derive macro for Schedulers.RxSubject -
Derive macro for Subjects.RxSubscriber -
Derive macro for Subscribers.RxSubscription -
Derive macro for Subscriptions.RxWork -
Derive macro for schedulable work.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