Skip to main content
Log in

Mojo module

string_slice

Implements the StringSlice type.

You can import these APIs from the collections.string.string_slice module.

Examples:

from collections.string import StringSlice
from collections.string import StringSlice

Aliases

  • StaticString = StringSlice[StaticConstantOrigin]: An immutable static string slice.

Structs

  • CodepointsIter: Iterator over the Codepoints in a string slice, constructed by StringSlice.codepoints().
  • CodepointSliceIter: Iterator for StringSlice over substring slices containing a single Unicode codepoint.
  • StringSlice: A non-owning view to encoded string data.