pub fn view(&self, incoming_route: &str) -> Option<Box<View>> {
        for route in self.routes.iter() {
            if route.matches(incoming_route) {
                return Some(route.view(incoming_route));
            }
        }

        None
    }
/// Get the first route in our routes vector view that handles this `incoming_route`
/// and return the view for that route.
///
/// You'll typically call this when trying to render the correct view based on the
/// page URL or after clicking on an anchor tag.
Get the first route in our routes vector view that handles this `incoming_route`
and return the view for that route.

You'll typically call this when trying to render the correct view based on the
page URL or after clicking on an anchor tag.
Get the first route in our routes vector view that handles this ` incoming_route ` and return the view for that route . You ' ll typically call this when trying to render the correct view based on the page URL or after clicking on an anchor tag .
pub fn view(&self, incoming_route: &str) -> Option<Box<View>> {
        for route in self.routes.iter() {
            if route.matches(incoming_route) {
                return Some(route.view(incoming_route));
            }
        }
        None
    }
pub fn view ( & self , incoming_route : & str ) -> Option < Box < View > > { for route in self . routes . iter ( ) { if route . matches ( incoming_route ) { return Some ( route . view ( incoming_route ) ) ; } } None }
Get the first route in our routes vector view that handles this `incoming_route`
and return the view for that route.
Get the first route in our routes vector view that handles this ` incoming_route ` and return the view for that route .
&self
incoming_route
&str
&self
incoming_route
&str