[−][src]Macro monadic::monadic
Macro which uses IntoIterator methods directly
You can use:
pure return_expresionto return an expression valuemonadic_expressionto end with a monad expressionv <- pure return_expresionto lift a rhs expression value with Some(x)v <- monadic_expressionto use the monad result&v <- &monadic_expressionto use an item by ref from a by ref monad_ <- monadic_expressionto ignore the monad resultlet z = expressionto combine monad resultsguard boolean_expressionto filter results
There are transitive implementation relations for some structures to be instances of IntoIterator that only implement Iterator:
All iterators implement IntoIterator where into_iter() returns the self iterator structure as documented
Iterator and IntoIterator trait imports are predefined