Skip to content
New issue

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

Not able to import FilterMap type #1010

Open
Plebshot opened this issue Apr 2, 2022 · 1 comment
Open

Not able to import FilterMap type #1010

Plebshot opened this issue Apr 2, 2022 · 1 comment

Comments

@Plebshot
Copy link

Plebshot commented Apr 2, 2022

As title says, i'm trying to get the FilterMap type into scope to store one in a struct. It does not seem to exist on any imports although the source code shows it. It's also not showing up on docs.rs search
image

@zjijz
Copy link

zjijz commented Nov 30, 2022

For some reason, async_std follows a pattern where Future combinator types are pub, but defined in non-pub modules. This isn't the pattern followed for Stream combinators, however.

The issue with FilterMap is that it was added to the "future" non-pub use section of

use filter_map::FilterMap;
instead of the "stream" pub use section below at
pub use chain::Chain;
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants