Module segments

Source

Traitsยง

ToSegments
Methods to split a longer strong on a separator and return a vector of strings, a tuple of two strings or single optional string segment Note some methods may return empty segments in the case of leading, trailing or repeated separators See notes below
ToSegmentsFromChars
Methods to split a &str/String on the first matched separator character