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
Correct me if I'm wrong, but I don't think it's possible to find out from the currently available online documentation if the following code returns true or false:
"ab".contains(&['b','a'][..])
Is searching for a slice of chars the same as searching for the string of the contatenation? Or is this a set match?
There is no information on this in the following places:
I think it'd be best if the explanation is put on the page of std::str::pattern::Pattern (and not on the respective impls) so that it is easy to lookup in a central position.
A small table and some examples should do such as the ones I've written over here.
I don't know how to do a sanity check compile. Apparently I need to compile all of rustc(?!) to get the docs, which is not feasible for me. If anybody would like to send the PR, they can use my branch as a base. Maybe improve the wording as well.
Activity
Freyskeyd commentedon Nov 6, 2017
If no one is working on it I would be happy to update this.
frewsxcv commentedon Feb 11, 2018
@Freyskeyd did you make any progress on this or is it alright for others to work on it?
Emerentius commentedon Jun 6, 2018
I think it'd be best if the explanation is put on the page of
std::str::pattern::Pattern(and not on the respective impls) so that it is easy to lookup in a central position.A small table and some examples should do such as the ones I've written over here.
I don't know how to do a sanity check compile. Apparently I need to compile all of rustc(?!) to get the docs, which is not feasible for me. If anybody would like to send the PR, they can use my branch as a base. Maybe improve the wording as well.
Rollup merge of rust-lang#72932 - poliorcetics:pattern-contains-behav…
Rollup merge of rust-lang#72932 - poliorcetics:pattern-contains-behav…
Rollup merge of rust-lang#72932 - poliorcetics:pattern-contains-behav…
Rollup merge of rust-lang#72932 - poliorcetics:pattern-contains-behav…
Rollup merge of rust-lang#72932 - poliorcetics:pattern-contains-behav…
Rollup merge of rust-lang#72932 - poliorcetics:pattern-contains-behav…
Rollup merge of rust-lang#72932 - poliorcetics:pattern-contains-behav…