FuncTemplate
struct · ferroui-controls · v0.5.0
struct FuncTemplate<TControl>
Creates a control from a function.
TControl is the exact value produced. When the template is used as a
setter value it must be the value type of the setter's property (for
example Option<Ref<Control>>).
Members
new
fn new(func: impl Fn() -> TControl + 'static) -> Rc<Self>
Creates a template from the function used to create the control.
Trait implementations
SendSyncFreezeUnsafeUnpinUnpinUnwindSafeRefUnwindSafeBorrow<T>BorrowMut<T>Into<U>From<T>TryInto<U>TryFrom<U>AnyClassDefaultsErasedDestructorIntoEitherITemplateOf<TControl>ITemplate
Availability
Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.