summary refs log tree commit diff
path: root/library/core/src/slice/iter.rs
AgeCommit message (Expand)AuthorLines
2023-01-15replace manual ptr arithmetic with ptr_subThe 8472-7/+1
2023-01-14Remove various double spaces in source comments.André Vennberg-2/+2
2022-11-20add examples to chunks remainder methods. Also fixed some links to rchunk rem...Felix S. Klock II-2/+30
2022-10-10Auto merge of #96711 - emilio:inline-slice-clone, r=nikicbors-0/+5
2022-09-22rustfmtScott McMurray-10/+4
2022-09-22Make ZST checks in core/alloc more readableScott McMurray-3/+3
2022-08-31Fix a bunch of typoDezhi Wu-2/+2
2022-08-12Rollup merge of #100030 - WaffleLapkin:nice_pointer_sis, r=scottmcmDylan DPC-2/+2
2022-08-05cleanup code w/ pointers in std a littleMaybe Waffle-2/+2
2022-08-01Add back Send and Sync impls on ChunksMut iteratorsBen Kimock-0/+24
2022-07-27Rollup merge of #94247 - saethlin:chunksmut-aliasing, r=the8472Guillaume Gomez-72/+122
2022-07-26Clarify safety commentsBen Kimock-59/+47
2022-07-26Explain how *mut [T] helps, and how we rely on the check in split_at_mutBen Kimock-20/+55
2022-07-16Rearrange slice::split_mut to remove bounds checkBen Kimock-10/+9
2022-07-03Fix slice::ChunksMut aliasingBen Kimock-72/+99
2022-06-20Rollup merge of #93080 - SkiFire13:itermut-as_mut_slice, r=m-ou-seDylan DPC-0/+48
2022-06-20Show #![feature] in example.Mara Bos-1/+1
2022-05-08Warn on unused doc(hidden) on trait impl itemsLeón Orell Valerian Liehr-11/+0
2022-05-04slice: #[inline] a couple iterator methods.Emilio Cobos Álvarez-0/+5
2022-04-17Add slice::remainderkadmin-0/+14
2022-03-24add #[must_use] to functions of slice and its iterators.Jendrik-0/+26
2022-03-10Use implicit capture syntax in format_argsT-O-R-U-S-3/+3
2022-02-01Auto merge of #86988 - thomcc:chunky-splitz-says-no-checking, r=the8472bors-7/+35
2022-01-19Implement `IterMut::as_mut_slice`Giacomo Stevanato-0/+48
2021-12-15Rollup merge of #91916 - steffahn:fix-typos, r=dtolnayMatthias Krüger-1/+1
2021-12-14Rollup merge of #89825 - martinvonz:split-inclusive-empty, r=m-ou-seMatthias Krüger-2/+4
2021-12-14Fix a bunch of typosFrank Steffahn-1/+1
2021-10-31Pull `self.v.len()` out in `RChunks::next` as suggested in review commentsThom Chiovoloni-6/+7
2021-10-31Reference Chunks::next_back in more of the chunk iterators safety commentsThom Chiovoloni-34/+2
2021-10-31Address some issues in chunk iterator safety commentsThom Chiovoloni-25/+9
2021-10-31Carefully remove bounds checks from some chunk iteratorsThom Chiovoloni-6/+81
2021-10-31Rollup merge of #89897 - jkugelman:must-use-core, r=joshtriplettMatthias Krüger-0/+3
2021-10-30Add #[must_use] to remaining core functionsJohn Kugelman-0/+3
2021-10-21Make RSplit<T, P>: Clone not require T: CloneCaleb Sander-1/+11
2021-10-12Make split_inclusive() on an empty slice yield an empty outputMartin von Zweigbergk-2/+4
2021-10-11Add #[must_use] to as_type conversionsJohn Kugelman-0/+2
2021-10-10Add #[must_use] to conversions that move selfJohn Kugelman-0/+4
2021-08-12Test and fix size_hint for slice's [r]split* iteratorsFrank Steffahn-8/+25
2021-08-06Auto merge of #87462 - ibraheemdev:tidy-file-length-ignore-comment, r=Mark-Si...bors-1/+0
2021-07-28Add TrustedRandomAccessNoCoerce supertrait without requirements or guarantees...Frank Steffahn-14/+66
2021-07-25ignore comments in tidy-filelengthibraheemdev-1/+0
2021-07-02optimize chunks and chunks_mutThe8472-13/+11
2021-06-16Add doc(hidden) to all __iterator_get_uncheckedJacob Hoffman-Andrews-0/+2
2021-03-22Rollup merge of #82771 - emilio:iter-mut-as-slice, r=m-ou-seDylan DPC-2/+8
2021-03-21Bump slice_iter_mut_as_slice stable version.Mara Bos-2/+2
2021-03-19Rollup merge of #82570 - WaffleLapkin:split_whitespace_as_str, r=m-ou-seDylan DPC-2/+4
2021-03-04slice: Stabilize IterMut::as_slice.Emilio Cobos Álvarez-2/+8
2021-03-02Auto merge of #82043 - tmiasko:may-have-side-effect, r=kennytmbors-39/+13
2021-02-27Add `as_str` method for split whitespace str iteratorsWaffle-2/+4
2021-02-25Convert the rest of the standard library primitives to intra-doc linksJoshua Nelson-52/+52