fn render(&mut self, renderer: &mut crate::render::ContextualRenderer, theme: &crate::style::Theme) {
        use crate::ViewElement::*;
        for child in self.children() {
            match child {
                View(view) => {
                    view.render(renderer, theme);
                }
                
                Widget(widget) => {
                    widget.render(renderer, theme);
                }
            }
        }
    }
// TODO: Should views serve only as containers?
// Implementing this as part of the trait will not allow otherwise.
// Might want to allow backgrounds or outlines for views.
Should views serve only as containers.
Implementing this as part of the trait will not allow otherwise.
Might want to allow backgrounds or outlines for views.
Should views serve only as containers . Implementing this as part of the trait will not allow otherwise . Might want to allow backgrounds or outlines for views .
fn render(&mut self, renderer: &mut crate::render::ContextualRenderer, theme: &crate::style::Theme) {
        use crate::ViewElement::*;
        for child in self.children() {
            match child {
                View(view) => {
                    view.render(renderer, theme);
                }
                Widget(widget) => {
                    widget.render(renderer, theme);
                }
            }
        }
    }
fn render ( & mut self , renderer : & mut crate :: render :: ContextualRenderer , theme : & crate :: style :: Theme ) { use crate :: ViewElement :: * ; for child in self . children ( ) { match child { View ( view ) => { view . render ( renderer , theme ) ; } Widget ( widget ) => { widget . render ( renderer , theme ) ; } } } }
TODO: Should views serve only as containers?
TODO : Should views serve only as containers?
&mut self
renderer
&mut crate::render::ContextualRenderer
theme
&crate::style::Theme
&mut self
renderer
&mut crate::render::ContextualRenderer
theme
&crate::style::Theme