Skip to main content

Module strings

Module strings 

Source
Expand description

Functions for working with Strings.

Modules§

exhaustive
Iterators that generate Strings without repetition.
gmp_format
The GmpConversionSpec struct, the GmpFormatArg trait, and the gmp_format function, for formatting values according to GMP-style printf format strings; the gmp_format! macro wraps them.
latex
The ToLatex trait, for converting a value to a LaTeX math-mode fragment, the LatexWrapper struct that its to_latex method returns, and the implementations for &str and String.
random
Iterators that generate Strings randomly.
typst
The ToTypst trait, for converting a value to a Typst math-mode fragment, the TypstWrapper struct that its to_typst method returns, and the implementations for &str and String.

Structs§

StringsFromCharVecs
Generates Strings, given an iterator that generates Vec<char>s.

Traits§

ToBinaryString
A trait that provides an ergonomic way to create the string specified by a Binary implementation.
ToDebugString
A trait that provides an ergonomic way to create the string specified by a Debug implementation.
ToLowerHexString
A trait that provides an ergonomic way to create the string specified by a LowerHex implementation.
ToOctalString
A trait that provides an ergonomic way to create the string specified by an Octal implementation.
ToUpperHexString
A trait that provides an ergonomic way to create the string specified by an UpperHex implementation.

Functions§

string_is_subset
Returns whether all of the first string slice’s characters are present in the second string slice.
string_sort
Sorts the characters of a string slice and returns them in a new String.
string_unique
Takes a string slice’s unique characters and returns them in a new String.
strings_from_char_vecs
Generates Strings, given an iterator that generates Vec<char>s.