[−][src]Trait smart_access::traversal::Of
An analogue of the At
trait.
Associated Types
Loading content...Required methods
fn each_of<F>(&mut self, i: Index, f: F) -> bool where
F: FnMut(&mut Self::View) -> bool,
F: FnMut(&mut Self::View) -> bool,
Traverses the view.
If f
returns false
, the iteration must stop.
The same goes for each_of
: usually you want to
return true
from it. But there may be exceptions
when returning false
is more convenient.