rust-ascii icon indicating copy to clipboard operation
rust-ascii copied to clipboard

Made AsciiStr::split generic over Pattern

Open PatrickNorton opened this issue 3 years ago • 1 comments

AsciiStr::split currently only accepts an AsciiChar as an argument. This PR makes it so split now accepts any Pattern, and also adds impl Pattern for AsciiChar so as to not break existing code.

PatrickNorton avatar Jul 25 '21 11:07 PatrickNorton

The APIs std::str::pattern::{Pattern, CharSearcher} are nightly only. Should we introduce a nightly feature for enabling these. Are there better ways of conditionally building code for nightly?

tomprogrammer avatar May 31 '22 18:05 tomprogrammer