You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rust-analyzer thinks the example's store.search return type is <&str as Searcher<Book>>::Item, which is not very useful. Store::search docs are not great either, leaving it unclear what I::Item is.
An extra source of confusion is that Item sounds like an item of an iterator, where in this case it apparently refers to results, plural.
It took a couple of tries, e.g. attempting to iterate the return value directly, before I stumbled on Results and saw how to iterate the results correctly.
It's not very clear how one would navigate from Store::search to Results based purely on the docs.
The text was updated successfully, but these errors were encountered:
rust-analyzer thinks the example's
store.search
return type is<&str as Searcher<Book>>::Item
, which is not very useful.Store::search
docs are not great either, leaving it unclear whatI::Item
is.An extra source of confusion is that
Item
sounds like an item of an iterator, where in this case it apparently refers to results, plural.It took a couple of tries, e.g. attempting to iterate the return value directly, before I stumbled on
Results
and saw how to iterate the results correctly.It's not very clear how one would navigate from
Store::search
toResults
based purely on the docs.The text was updated successfully, but these errors were encountered: