inlined_string
Implements a string that has a small-string optimization which avoids heap allocations for short strings.
InlinedString
A string that performs small-string optimization to avoid heap allocations for short strings.
Aliases:
-
SMALL_CAP = 24
: The number of bytes of string data that can be stored inline in this string before a heap allocation is required. -
Layout = Variant[String, _FixedString[24]]
Implemented traits:
AnyType
, CollectionElement
, Copyable
, Movable
, Sized
, Stringable
Methods:
__init__
__init__(inout self: Self)
Constructs a new empty string.
<