method bind has 2 parameters but the declaration in trait bind has 3 in:
fn bind(&self, sub: &Subscriber) {
// bind the nav's output view messages to our input model messages
sub.subscribe_filter_map(&self.nav.recv, |msg| msg.route().map(|r| AppModel::HashChange {
route: r.clone()
}));
}
method) {
// bind the nav's output view messages to our input model messages
sub.subscribe_filter_map(&self.nav.recv, |msg| msg.route().map(|r| AppModel::HashChange {
route: r.clone()
}));
}
bind
has 2 parameters but the declaration in traitbind
has 3 in: fn bind(&self, sub: &Subscriber