FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    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.

    View source

    Members

    new

    fn new(command: Rc<dyn ferroui_reactiveui::ICommand>) -> Rc<Self>
    

    The command of FerroUI that runs command.

    Source

    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.

    Source

    command

    fn command(self: &Self) -> &Rc<dyn ferroui_reactiveui::ICommand>
    

    The command of ReactiveUI the adapter runs.

    Source

    wraps

    fn wraps(self: &Self, command: &Rc<dyn ferroui_reactiveui::ICommand>) -> bool
    

    Whether the adapter runs command (the same object).

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither
    • Debug
    • ICommand

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.