We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How many convenience functions should we add?
Pro: Is convenient Con: Increases API surface which might be harder to navigate
Suggested functions:
query!().map_all(...) which queries all entries, returns them as Vec but maps them through a closure first
query!().map_all(...)
Vec
Currently possible solutions:
query!().stream().map_ok(...).try_collect::<Vec<_>>()
TryStreamExt
query!().all().into_iter().map(...).collect::<Vec<_>>()
Alternatives:
Selector
Decoder
The text was updated successfully, but these errors were encountered:
No branches or pull requests
How many convenience functions should we add?
Pro: Is convenient
Con: Increases API surface which might be harder to navigate
Suggested functions:
query!().map_all(...)
which queries all entries, returns them asVec
but maps them through a closure firstCurrently possible solutions:
query!().stream().map_ok(...).try_collect::<Vec<_>>()
(requiresTryStreamExt
)query!().all().into_iter().map(...).collect::<Vec<_>>()
(requires unnecessary alloc)Alternatives:
Selector
andDecoder
to be easier to implement / extend using combinators.(Already kind of planned, but will take a while)
The text was updated successfully, but these errors were encountered: