Instead of returning an undocumented boolean flag, use a core::ops::ControlFlow object. At the expense of being a bit more verbose, this is a type that should be self-explanatory in the context of a callback, as an indication of whether to continue processing or stop. |
||
|---|---|---|
| .. | ||
| c_lib.rs | ||
| highlight.rs | ||