[−][src]Macro monadic::mdo
Macro based on Bind and Monad traits as supertraits of IntoIterator
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 Option::pure(x)v <- monadic_expressionto use the monad result&v <- &monadic_expressionto use a reference item result from a by reference 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