Skip to main content

value_change

Function value_change 

Source
pub fn value_change<Shape, Value>(
    state: &<Shape as GpuiComponentShape>::State,
    event: &<Shape as GpuiComponentValueBinding<Value>>::Event,
) -> ValueChange<Value>
where Shape: GpuiComponentValueBinding<Value>, <Shape as GpuiComponentShape>::State: EventEmitter<<Shape as GpuiComponentValueBinding<Value>>::Event>,
Expand description

Convert a component event into a value change without repeating UFCS projections in generated code.