rust-ascii
rust-ascii copied to clipboard
Made AsciiStr::split generic over Pattern
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.
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?