FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    register_view_model

    function · ferroui-reactiveui-controls · v0.5.0

    fn register_view_model<VM: PartialEq + 'static>()
    

    Registers the view model type VM on this thread: a view model of the type is then the value of a DataContext itself (Rc<VM> as the box), and a reference type of the untyped value conversions (ValueTypes::register_reference). Idempotent.

    View source

    Availability

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