Skip to main content

seed_value_binding_state

Function seed_value_binding_state 

Source
pub fn seed_value_binding_state<Shape, Value>(
    state: &mut <Shape as GpuiComponentShape>::State,
    value: Option<&Value>,
    window: &mut Window,
    cx: &mut Context<'_, <Shape as GpuiComponentShape>::State>,
)
where Shape: GpuiComponentValueBinding<Value>, <Shape as GpuiComponentShape>::State: EventEmitter<<Shape as GpuiComponentValueBinding<Value>>::Event>,
Expand description

Seed component state from the current value without spelling out the associated-type projection at every generated call site.