ReactiveCommandAdapter
struct · ferroui-reactiveui-controls · v0.5.0
struct ReactiveCommandAdapter
A command of ReactiveUI as a command of FerroUI: each member forwards to the command it wraps,
with the parameter seen as &dyn Any.
Deviation (DEVIATIONS.md, ReactiveUI controls): upstream sets the command itself as the
Command of a control; the two ICommands of the port are bridged by this adapter.
Members
new
fn new(command: Rc<dyn ferroui_reactiveui::ICommand>) -> Rc<Self>
The command of FerroUI that runs command.
command_of
fn command_of(command: Rc<dyn ferroui_reactiveui::ICommand>) -> Rc<dyn ICommand>
new as the handle the Command property of a control holds.
command
fn command(self: &Self) -> &Rc<dyn ferroui_reactiveui::ICommand>
The command of ReactiveUI the adapter runs.
wraps
fn wraps(self: &Self, command: &Rc<dyn ferroui_reactiveui::ICommand>) -> bool
Whether the adapter runs command (the same object).
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherDebugICommand
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.