Trait freya::prelude::InitializeFromFunction

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§

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§

§

impl<T> InitializeFromFunction<T> for Memo<T>
where T: PartialEq,

§

impl<T> InitializeFromFunction<T> for Signal<T>

§

impl<T> InitializeFromFunction<T> for T