FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    Model

    trait · ferroui-base · v0.5.0

    trait Model: PartialEq + Sized + 'static
    

    A model type that declares its binding metadata.

    Implement it with ferro_model!; create instances with Model::new_model (or call Model::register once per thread before the first binding touches an instance).

    View source

    Members

    describe

    fn describe(builder: ModelTypeBuilder<Self>) -> ModelTypeBuilder<Self>
    

    Describes the type's properties, methods and notification interfaces.

    Source

    register

    fn register()
    

    Registers the metadata on the current thread, once.

    Source

    new_model

    fn new_model(value: Self) -> Rc<Self>
    

    Wraps an instance into its shared, bindable form.

    Source

    Availability

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