Analysis of information sources in references of the Wikipedia article "Comparison of programming languages (string functions)" in English language version.
operator<=> method on a string returns a std::strong_ordering object (otherwise std::weak_ordering): less, equal (same as equivalent), or greater.std::basic_string::contains method.str::chars method iterates over code points and the std::iter::Iterator::nth method on iterators returns the zero-indexed nth value from the iterator, or None.Ord::cmp method on a string returns an Ordering: Less, Equal, or Greater.eq, ne are implemented by the PartialEq trait, and the operators <, >, <=, >= and the methods lt, gt, le, ge are implemented by the PartialOrd trait.+ operator is implemented by the Add trait.str::contains method.str::find method.std::format, which is imported by the Rust prelude so that it can be used under the name format.slice::join method.&str (string reference) can be indexed by various types of ranges, including Range (0..n), RangeFrom (n..), and RangeTo (..n) because they all implement the SliceIndex trait with str being the type being indexed.
The str::get method is the non-panicking way to index. It returns None in the cases in which indexing would panic.str::len method.str::chars method iterates over code points and the std::iter::Iterator::count method on iterators consumes the iterator and returns the total number of elements in the iterator.str::to_lowercase method.str::replace method.str::chars method iterates over code points, the std::iter::Iterator::rev method on reversible iterators (std::iter::DoubleEndedIterator) creates a reversed iterator, and the std::iter::Iterator::collect method consumes the iterator and creates a collection (which here is specified as a String with the turbofish syntax) from the iterator's elements.str::rfind method.str::split and str::rsplit methods.str::to_uppercase method returns a newly allocated String with any lowercase characters changed to uppercase ones following the Unicode rules.str::trim method returns a reference to the original &str.