Skip to main content Module extras Copy item path Source decode Decode UTF-8 byte buffers back into a StringArray preserving the
input shape. encode Encode each string as UTF-8 bytes, returning a Vec<Vec<u8>> per element. expandtabs Replace tab characters in each element with spaces, expanding to the
given tab size on column boundaries. mod_ Format each element as a printf-style template, substituting args in. partition Split each element on the first occurrence of sep, returning a
(before, sep, after) triple per element. rpartition Split each element on the last occurrence of sep, returning a
(before, sep, after) triple per element. slice Slice each element by character index — s[start..stop] with negative
indices counting from the end (Python-style). None for either bound
keeps the corresponding edge. translate Apply a per-character translation table to each element.