SmallString.opIndex

Returns an scope common string.

The property is used as common string representation self alias.

The alias helps with [], [i], [i .. j], ==, and != operations and implicit conversion to strings.

  1. inout(char)[] opIndex()
    struct SmallString(uint maxLength)
    extern (D) @safe pure @nogc scope nothrow inout @trusted scope return
    inout(char)[]
    opIndex
    ()
    if (
    maxLength
    )
  2. inout(char) opIndex(size_t index)

Meta