fn board_row<'a>(
    row: usize,
    initial_cells: Vec<crate::model::BoardValue>,
    tx: &Transmitter<CellInteract>,
    rx: &Receiver<CellUpdate>,
) -> ViewBuilder<HtmlElement> {
    use crate::components::cell::BoardCell;
    let children = initial_cells
        .into_iter()
        .enumerate()
        .map(|(col, value)| BoardCell::gizmo(col, row, value, tx, rx).view_builder());
    let mut tr = builder! { <tr /> };
    for child in children {
        tr.with(child);
    }
    tr
}
/// Create a `<tr>` representing a row of game cells. Interactions are transmitted to `tx` and new
/// text to display is received by `rx`.
Create a `` representing a row of game cells. Interactions are transmitted to `tx` and new
text to display is received by `rx`.
Create a ` ` representing a row of game cells . Interactions are transmitted to ` tx ` and new text to display is received by ` rx ` .
fn board_row<'a>(
    row: usize,
    initial_cells: Vec<crate::model::BoardValue>,
    tx: &Transmitter<CellInteract>,
    rx: &Receiver<CellUpdate>,
) -> ViewBuilder<HtmlElement> {
    use crate::components::cell::BoardCell;
    let children = initial_cells
        .into_iter()
        .enumerate()
        .map(|(col, value)| BoardCell::gizmo(col, row, value, tx, rx).view_builder());
    let mut tr = builder! { <tr /> };
    for child in children {
        tr.with(child);
    }
    tr
}
fn board_row < ' a > ( row : usize , initial_cells : Vec < crate :: model :: BoardValue > , tx : & Transmitter < CellInteract > , rx : & Receiver < CellUpdate > , ) -> ViewBuilder < HtmlElement > { use crate :: components :: cell :: BoardCell ; let children = initial_cells . into_iter ( ) . enumerate ( ) . map ( | ( col , value ) | BoardCell :: gizmo ( col , row , value , tx , rx ) . view_builder ( ) ) ; let mut tr = builder ! { tr } ; for child in children { tr . with ( child ) ; } tr }
Create a `<tr>` representing a row of game cells.
Create a ` <tr > ` representing a row of game cells .
row
usize
initial_cells
Vec<crate::model::BoardValue>
tx
&Transmitter<CellInteract>
rx
&Receiver<CellUpdate>
row
usize
initial_cells
Vec<crate::model::BoardValue>
tx
&Transmitter<CellInteract>
rx
&Receiver<CellUpdate>