Length
Returns the number of bytes written so far.
Module: Std
Signature
rux
func Length(self) -> uint;Returns
uint — the current content length in bytes (always ≤ Capacity).
Example
rux
import Std::StringBuilder;
var sb = StringBuilder::New();
sb.Append("hello");
// sb.Length() == 5See also
StringBuilder— the typeIsEmpty— test for zero lengthCapacity— allocated size