Skip to main content

VarPresentOpt

Trait VarPresentOpt 

Source
pub trait VarPresentOpt<D>
where 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".

Implementors§

Source§

impl<D> VarPresentOpt<D> for Var<Option<D>>
where D: VarValue,