dioxus_lib::prelude

Trait InitializeFromFunction

source
pub trait InitializeFromFunction<T> {
    // Required method
    fn initialize_from_function(f: fn() -> T) -> Self;
}
Expand description

A trait for an item that can be constructed from an initialization function

Required Methods§

source

fn initialize_from_function(f: fn() -> T) -> Self

Create an instance of this type from an initialization function

Object Safety§

This trait is not object safe.

Implementors§