Colorless: Write once controlflow for synchronous and asynchronous code
The Rust Programming Language Forum
Colorless: Write once controlflow for synchronous and asynchronous code
I've been working on Colorlessgithub.com/veecore/colorless-rs, an experimental rust toolkit to address the classic "function coloring" problem without code duplication or coroutine overhead. Quick Taste Here is a streaming key-value parser driven by callbacks (`ColoredFnMut`): #[colorless(C)] fn parse_records<'a, S, D>(mut source: S, mut sink: D) -> Result<usize, ()> where S: ColoredFnMut<(), C, Output = Option<&'a str>>, D: ColoredFnMut<(&'a str, &'a str), C, Output = Result<(), ()>>,...
0 comments
No comments yet.