VarPresent

Trait VarPresent 

Source
pub trait VarPresent<D: VarValue> {
    // Required method
    fn present(&self, wgt_fn: impl IntoVar<WidgetFn<D>>) -> UiNode;
}
Expand description

Extension method to convert a variable to a node.

Required Methods§

Source

fn present(&self, wgt_fn: impl IntoVar<WidgetFn<D>>) -> UiNode

Present the variable data using a presenter node.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<D: VarValue> VarPresent<D> for Var<D>

Source§

fn present(&self, wgt_fn: impl IntoVar<WidgetFn<D>>) -> UiNode

Implementors§