VarPresentOpt

Trait VarPresentOpt 

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

Extension method to convert a variable to a node.

Required Methods§

Source

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

Present the variable data using a presenter_opt 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> VarPresentOpt<D> for Var<Option<D>>

Source§

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

Implementors§