func index(beforeRun : AttributedString.Index) -> AttributedString.Index
Returns the position of the run immediately before a run indicated by an index.
func index(beforeUnicodeScalar : AttributedString.Index) -> AttributedString.Index
Returns the position of the Unicode scalar immediately before a Unicode scalar indicated by an index.