fn draw_result(
    result: DrawingResult,
) -> (Element<SettingControlEvent>, Element<SettingControlEvent>) {
    let mut left_control = Column::new();
    let mut right_control = Column::new();

    if let Some(inline) = result.inline {
        left_control = left_control.push(Space::with_height(ROW_HEIGHT));
        right_control = right_control.push(inline);
    }

    let left_control: Element<_> = left_control
        .push(
            Row::new()
                .push(Space::with_width(INDENTATION))
                .push(result.left),
        )
        .into();
    let right_control: Element<_> = right_control.push(result.right).into();

    (
        left_control.map(|mut e: SettingControlEvent| {
            e.path.push(0);
            e
        }),
        right_control.map(|mut e: SettingControlEvent| {
            e.path.push(0);
            e
        }),
    )
}
// For all containers except Section (which needs to handle the labels and notices)
For all containers except Section (which needs to handle the labels and notices)
For all containers except Section ( which needs to handle the labels and notices )
fn draw_result(
    result: DrawingResult,
) -> (Element<SettingControlEvent>, Element<SettingControlEvent>) {
    let mut left_control = Column::new();
    let mut right_control = Column::new();
    if let Some(inline) = result.inline {
        left_control = left_control.push(Space::with_height(ROW_HEIGHT));
        right_control = right_control.push(inline);
    }
    let left_control: Element<_> = left_control
        .push(
            Row::new()
                .push(Space::with_width(INDENTATION))
                .push(result.left),
        )
        .into();
    let right_control: Element<_> = right_control.push(result.right).into();
    (
        left_control.map(|mut e: SettingControlEvent| {
            e.path.push(0);
            e
        }),
        right_control.map(|mut e: SettingControlEvent| {
            e.path.push(0);
            e
        }),
    )
}
fn draw_result ( result : DrawingResult , ) -> ( Element < SettingControlEvent > , Element < SettingControlEvent > ) { let mut left_control = Column :: new ( ) ; let mut right_control = Column :: new ( ) ; if let Some ( inline ) = result . inline { left_control = left_control . push ( Space :: with_height ( ROW_HEIGHT ) ) ; right_control = right_control . push ( inline ) ; } let left_control : Element < _ > = left_control . push ( Row :: new ( ) . push ( Space :: with_width ( INDENTATION ) ) . push ( result . left ) , ) . into ( ) ; let right_control : Element < _ > = right_control . push ( result . right ) . into ( ) ; ( left_control . map ( | mut e : SettingControlEvent | { e . path . push ( 0 ) ; e } ) , right_control . map ( | mut e : SettingControlEvent | { e . path . push ( 0 ) ; e } ) , ) }
For all containers except Section (which needs to handle the labels and notices)
For all containers except Section ( which needs to handle the labels and notices )
result
DrawingResult