Expand description
Iterators for str methods.
Re-exportsยง
use super::pattern::DoubleEndedSearcher;๐Experimental use super::pattern::Pattern;๐Experimental use super::pattern::ReverseSearcher;๐Experimental use super::pattern::Searcher;๐Experimental use super::validations::next_code_point;๐Experimental use super::validations::next_code_point_reverse;๐use super::BytesIsNotEmpty;๐use super::CharEscapeDebug;๐use super::CharEscapeDefault;๐use super::CharEscapeUnicode;๐use super::IsAsciiWhitespace;๐use super::IsNotEmpty;๐use super::IsWhitespace;๐use super::LinesMap;๐use super::UnsafeBytesToStr;๐use super::from_utf8_unchecked;๐use crate::char as char_mod;๐use crate::fmt;๐use crate::fmt::Write;๐use crate::iter::Copied;๐use crate::iter::Filter;๐use crate::iter::FlatMap;๐use crate::iter::FusedIterator;๐use crate::iter::Map;๐use crate::iter::TrustedLen;๐Experimental use crate::iter::TrustedRandomAccess;๐Experimental use crate::iter::TrustedRandomAccessNoCoerce;๐Experimental use crate::num::NonZero;๐use crate::ops::Try;๐Experimental use crate::slice;๐use crate::slice::Split as SliceSplit;๐
Macrosยง
- derive_
pattern_ ๐clone - This macro generates a Clone impl for string pattern API wrapper types of the form X<โa, P>
- escape_
types_ ๐impls - generate_
pattern_ ๐iterators - This macro generates two public iterator structs
wrapping a private internal one that makes use of the
PatternAPI.
Structsยง
- Bytes
- An iterator over the bytes of a string slice.
- Char
Indices - An iterator over the
chars of a string slice, and their positions. - Chars
- An iterator over the
chars of a string slice. - Encode
Utf16 - An iterator of
u16over the string encoded as UTF-16. - Escape
Debug - The return type of
str::escape_debug. - Escape
Default - The return type of
str::escape_default. - Escape
Unicode - The return type of
str::escape_unicode. - Lines
- An iterator over the lines of a string, as string slices.
- Lines
Any Deprecated - Created with the method
lines_any. - Match
Indices - Created with the method
match_indices. - Match
Indices ๐Internal - Matches
- Created with the method
matches. - Matches
Internal ๐ - RMatch
Indices - Created with the method
rmatch_indices. - RMatches
- Created with the method
rmatches. - RSplit
- Created with the method
rsplit. - RSplitN
- Created with the method
rsplitn. - RSplit
Terminator - Created with the method
rsplit_terminator. - Split
- Created with the method
split. - Split
Ascii Whitespace - An iterator over the non-ASCII-whitespace substrings of a string, separated by any amount of ASCII whitespace.
- Split
Inclusive - An iterator over the substrings of a string,
terminated by a substring matching to a predicate function.
Unlike
Split, it contains the matched part as a terminator of the subslice. - Split
Internal ๐ - SplitN
- Created with the method
splitn. - SplitN
Internal ๐ - Split
Terminator - Created with the method
split_terminator. - Split
Whitespace - An iterator over the non-whitespace substrings of a string, separated by any amount of whitespace.