rust/library/core/src/str
Peter Jaszkowiak ffea65bf61 add new_range_api for RFC 3550
This includes a `From<legacy::RangeInclusive> for RangeInclusive` impl for convenience, instead of the `TryFrom` impl from the RFC.
Having `From` is highly convenient and the assertion is unlikely to be a problem in practice.

This includes re-exports of all existing `Range` types under `core::range`, plus the range-related traits (`RangeBounds`, `Step`, `OneSidedRange`) and the `Bound` enum.

Currently the iterators are just wrappers around the old range types,
and most other trait impls delegate to the old rage types as well.

Also includes an `.iter()` shorthand for `.clone().into_iter()`
2024-07-05 16:33:58 -06:00
..
converts.rs [ACP 362] genericize ptr::from_raw_parts 2024-05-29 09:34:16 -07:00
count.rs Add blank lines after module-level //! comments. 2024-06-20 09:23:20 +10:00
error.rs remove cfg(bootstrap) 2022-09-26 10:14:45 +02:00
iter.rs Revert "Rollup merge of #125362 - joboet:tait_hack, r=Nilstrieb" 2024-06-12 08:47:49 +00:00
lossy.rs Replace version placeholders for 1.79 2024-05-01 21:01:51 -04:00
mod.rs Auto merge of #126273 - pietroalbini:pa-bootstrap-update, r=Mark-Simulacrum 2024-06-12 18:15:32 +00:00
pattern.rs typo: depending from -> on 2024-06-02 18:15:50 +02:00
traits.rs add new_range_api for RFC 3550 2024-07-05 16:33:58 -06:00
validations.rs Fix comment in core/src/str/validations.rs 2024-02-12 16:00:15 +02:00