Crate fp_rust[−][src]
Modules
In this module, there’re many traits/structs and fns defined,
for general purposes crossing over many modules of fpRust.
In this module there’re implementations & tests of Cor.
In this module there’re implementations & tests of general functional programming features.
In this module there’re implementations & tests of Handler.
(Inspired by Android Handler)
In this module there’re implementations & tests of Maybe.
In this module there’re implementations & tests of MonadIO.
It’s inspired by Rx & MonadIO in Haskell
In this module, there’re implementations & tests of Publisher
In this module there’re implementations & tests of general async handling features.
Macros
Compose functions.
Contains macro for Vec<T>, in currying ways by partial_left_last_one!().
Define a new Cor with type.
It will return a Arc<Mutex<Cor>>.
Define a new Cor with type and start it immediately.
It will return a Arc<Mutex<Cor>>.
Start this Cor.
Make this returns a given Option<RETURN> given_to_outside to its callee Cor,
and this method returns the Option<RECEIVE> value given from outside.
Make this sends a given Option<RECEIVETARGET> to target,
and this method returns the Option<RETURNTARGET> response from target.
Run codes inside a doM block(Haskell do notation)
(this is a sync macro)
Run codes inside a doM block(Haskell do notation)
(this is a sync macro)
Filter macro for Vec<T>, in currying ways by partial_left_last_one!().
Foldl macro for Vec<T>, in currying ways by partial_left_last_one!().
Foldr macro for Vec<T>, in currying ways by partial_left_last_one!().
Map macro for Vec<T>, in currying ways by partial_left_last_one!().
Insert key-value pairs into the given map
Partial application macro with variadic arguments for a pre-defined function,
and currying the lastest one argument by returning closure.
Pipe functions.
Reduce macro for Vec<T>, in currying ways by partial_left_last_one!().
Reverse macro for Vec<T>, in currying ways.
Spread the variadic arguments and call the given funciton.