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

  • CharsIter: Iterator over the Chars in a string slice, constructed by StringSlice.chars().
  • StringSlice: A non-owning view to encoded string data.