StringChars
- typeStringChars
A view into a string indexed by chars.
- functionget(self: StringChars, idx: u64) Option[char]
Get the nth character of this string.
- functionlen(self: StringChars) u64
Get the number of characters in a string.
- functionlist(self: StringChars) List[char]
Get a list of characters that this string consists of.
- functionslice(self: StringChars, start: u64, end: u64) Option[String]
Slice this string based on the character indices.
The character at index
endis not included in the returned string.This method returns
Noneif eitherstartorendis out of bounds or ifstartis greater thanend.