fn render<'a, 'bump>(&'a self, bump: &'bump Bump) -> Node<'bump>
    where
        'a: 'bump,
    {
        //return
        div(bump)
            .attr("class", "grid_container_players")
            .attr(
                "style",
                bumpalo::format!(in bump, "grid-template-columns: auto auto auto;{}","")
                    .into_bump_str(),
            )
            .children([
                div(bump)
                    .attr("class", "grid_item")
                    .attr(
                        "style",
                        bumpalo::format!(in bump,"text-align: left;color:{};text-decoration:{}",
                            if self.player_turn==1 {"green"} else {"red"},
                            if self.this_machine_player_number==1 {"underline"} else {"none"}
                        )
                        .into_bump_str(),
                    )
                    .children([text(
                        bumpalo::format!(in bump, "player1: {}",self.player1_points)
                            .into_bump_str(),
                    )])
                    .finish(),
                div(bump)
                    .attr("class", "grid_item")
                    .attr("style", "text-align: center;")
                    .children([text("")])
                    .finish(),
                div(bump)
                    .attr("class", "grid_item")
                    .attr(
                        "style",
                        bumpalo::format!(in bump,"text-align: right;color:{};text-decoration:{}",
                            if self.player_turn==2 {"green"} else {"red"},
                            if self.this_machine_player_number==2 {"underline"} else {"none"}
                        )
                        .into_bump_str(),
                    )
                    .children([text(
                        bumpalo::format!(in bump, "player2: {}",self.player2_points)
                            .into_bump_str(),
                    )])
                    .finish(),
            ])
            .finish()
    }
///This rendering will be rendered and then cached . It will not be rerendered untill invalidation.
///It is ivalidate, when the points change.
///html element to with scores for 2 players
This rendering will be rendered and then cached . It will not be rerendered untill invalidation.
It is ivalidate, when the points change.
html element to with scores for 2 players
This rendering will be rendered and then cached . It will not be rerendered untill invalidation . It is ivalidate when the points change . html element to with scores for 2 players
fn render<'a, 'bump>(&'a self, bump: &'bump Bump) -> Node<'bump>
    where
        'a: 'bump,
    {
        //return
        div(bump)
            .attr("class", "grid_container_players")
            .attr(
                "style",
                bumpalo::format!(in bump, "grid-template-columns: auto auto auto;{}","")
                    .into_bump_str(),
            )
            .children([
                div(bump)
                    .attr("class", "grid_item")
                    .attr(
                        "style",
                        bumpalo::format!(in bump,"text-align: left;color:{};text-decoration:{}",
                            if self.player_turn==1 {"green"} else {"red"},
                            if self.this_machine_player_number==1 {"underline"} else {"none"}
                        )
                        .into_bump_str(),
                    )
                    .children([text(
                        bumpalo::format!(in bump, "player1: {}",self.player1_points)
                            .into_bump_str(),
                    )])
                    .finish(),
                div(bump)
                    .attr("class", "grid_item")
                    .attr("style", "text-align: center;")
                    .children([text("")])
                    .finish(),
                div(bump)
                    .attr("class", "grid_item")
                    .attr(
                        "style",
                        bumpalo::format!(in bump,"text-align: right;color:{};text-decoration:{}",
                            if self.player_turn==2 {"green"} else {"red"},
                            if self.this_machine_player_number==2 {"underline"} else {"none"}
                        )
                        .into_bump_str(),
                    )
                    .children([text(
                        bumpalo::format!(in bump, "player2: {}",self.player2_points)
                            .into_bump_str(),
                    )])
                    .finish(),
            ])
            .finish()
    }
fn render < ' a , ' bump > ( & ' a self , bump : & ' bump Bump ) -> Node < ' bump > where ' a : ' bump , { //return div ( bump ) . attr ( " " , " " ) . attr ( " " , bumpalo :: format ! ( in bump " " " " ) . into_bump_str ( ) , ) . children ( [ div ( bump ) . attr ( " " , " " ) . attr ( " " , bumpalo :: format ! ( in bump " " if self player_turn 1 { " " } else { " " } if self this_machine_player_number 1 { " " } else { " " } ) . into_bump_str ( ) , ) . children ( [ text ( bumpalo :: format ! ( in bump " " self player1_points ) . into_bump_str ( ) , ) ] ) . finish ( ) , div ( bump ) . attr ( " " , " " ) . attr ( " " , " " ) . children ( [ text ( " " ) ] ) . finish ( ) , div ( bump ) . attr ( " " , " " ) . attr ( " " , bumpalo :: format ! ( in bump " " if self player_turn 2 { " " } else { " " } if self this_machine_player_number 2 { " " } else { " " } ) . into_bump_str ( ) , ) . children ( [ text ( bumpalo :: format ! ( in bump " " self player2_points ) . into_bump_str ( ) , ) ] ) . finish ( ) , ] ) . finish ( ) }
This rendering will be rendered and then cached .
This rendering will be rendered and then cached .
&'a self
bump
&'bump Bump
&'a self
bump
&'bump Bump