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

Add str::{Split,RSplit,SplitN,RSplitN,SplitTerminator,RSplitTerminator,SplitInclusive}::as_str methods #75265

Merged
merged 4 commits into from
Oct 16, 2020

Commits on Oct 1, 2020

  1. add str::{Split,RSplit}::as_str methods

    This commit introduses 2 methods under "str_split_as_str" gate with common
    signature of `&Split<'a, _> -> &'a str'`. Both of them work like
    `Chars::as_str` - return unyield part of the inner string.
    WaffleLapkin committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    0b923d3 View commit details
    Browse the repository at this point in the history
  2. add `str::{SplitN, RSplitN, SplitTerminator, RSplitTerminator}::as_st…

    …r` methods
    
    This commit entroduce 4 methods smililar to `Split::as_str` all under the same
    gate "str_split_as_str".
    WaffleLapkin committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    4747215 View commit details
    Browse the repository at this point in the history
  3. add str::SplitInclusive::as_str method

    This commit entroduces `core::str::SplitInclusive::as_str` method similar to
    `core::str::Split::as_str`, but under different gate -
    "str_split_inclusive_as_str" (this is done so because `SplitInclusive` is
    itself unstable).
    WaffleLapkin committed Oct 1, 2020
    Configuration menu
    Copy the full SHA
    076514c View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2020

  1. Configuration menu
    Copy the full SHA
    7bd6403 View commit details
    Browse the repository at this point in the history