Skip to content

Too hard to find methods available on str #24097

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

Closed
Valloric opened this issue Apr 5, 2015 · 2 comments
Closed

Too hard to find methods available on str #24097

Valloric opened this issue Apr 5, 2015 · 2 comments
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.

Comments

@Valloric
Copy link
Contributor

Valloric commented Apr 5, 2015

I've been away from Rust code for a while, and here's how I went looking for methods on str:

  1. Went to Rust homepage, clicked on beta API docs.
  2. In the search bar, typed in str.
  3. Clicked on first result, std::str.
  4. Found no methods for str. Only structs are available, no stable traits that might have the methods.
  5. Randomly clicked on Chars struct. Page says "Created with the method .chars()."
  6. Typed chars into the search box. Lots of results, found a method core::str::StrExt::chars. Saw that StrExt was unstable, and I only want stable APIs so closed the tab.
  7. Clicked around some more, gave up, asked on #rust IRC about str methods.
  8. Was given link to Primitive type str.

Hopefully we'll have a better experience for the flood of newcomers at 1.0.

@steveklabnik

@emberian emberian added the T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue. label Apr 5, 2015
@emberian
Copy link
Member

emberian commented Apr 5, 2015

Closing as dupe of #23511

@emberian emberian closed this as completed Apr 5, 2015
@emberian
Copy link
Member

emberian commented Apr 5, 2015

(Thanks for the great bug report, though)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T-rustdoc Relevant to the rustdoc team, which will review and decide on the PR/issue.
Projects
None yet
Development

No branches or pull requests

2 participants