Expand description
String: UTF-8 bytes with a '\0' terminator, m_size bytes including it, m_length
code points. String.Pos is a byte offset.
Functions§
- lean_
alloc_ ⚠string - lean_
char_ default_ value - lean_
copy_ ⚠string - lean_
copy_ ⚠string_ nonlinear - lean_
decode_ ⚠lossy_ utf8 - lean_
mk_ ⚠ascii_ string_ unchecked - lean_
mk_ ⚠string - lean_
mk_ ⚠string_ from_ bytes - A string from bytes; invalid sequences become U+FFFD.
- lean_
mk_ ⚠string_ from_ bytes_ unchecked - A string from valid UTF-8 bytes.
- lean_
mk_ ⚠string_ unchecked - A string from
szbytes of valid UTF-8 withlencode points. - lean_
slice_ ⚠dec_ lt - lean_
slice_ ⚠hash - lean_
string_ ⚠append - Consumes
s1, borrowss2. - lean_
string_ ⚠byte_ size - lean_
string_ ⚠bytes - The bytes of a string without the terminator.
- lean_
string_ ⚠capacity - lean_
string_ ⚠compare compareas anOrderingconstructor index (0 lt, 1 eq, 2 gt).- lean_
string_ ⚠cstr - lean_
string_ ⚠data - The list of characters of a string (consumes it).
- lean_
string_ ⚠dec_ eq - lean_
string_ ⚠dec_ lt - lean_
string_ ⚠ensure_ exclusive - lean_
string_ ⚠eq - lean_
string_ ⚠from_ utf8_ unchecked - Consumes the byte array.
- lean_
string_ ⚠get_ byte_ fast - lean_
string_ ⚠hash - lean_
string_ ⚠is_ valid_ pos - lean_
string_ ⚠len - Number of code points.
- lean_
string_ ⚠length - lean_
string_ ⚠lt - lean_
string_ ⚠memcmp - lean_
string_ ⚠mk String.ofList(consumes the list).- lean_
string_ ⚠ne - lean_
string_ ⚠of_ usize - lean_
string_ ⚠push - lean_
string_ ⚠size - Byte size including the terminator.
- lean_
string_ ⚠to_ str - The contents of a string (borrowed; the string must stay alive while the result is used).
- lean_
string_ ⚠to_ utf8 - lean_
string_ ⚠uget_ byte_ fast - lean_
string_ ⚠utf8_ at_ end - lean_
string_ ⚠utf8_ byte_ size - lean_
string_ ⚠utf8_ extract - lean_
string_ ⚠utf8_ extract_ fast - lean_
string_ ⚠utf8_ get - lean_
string_ ⚠utf8_ get_ bang - lean_
string_ ⚠utf8_ get_ fast - lean_
string_ ⚠utf8_ get_ opt - lean_
string_ ⚠utf8_ next - lean_
string_ ⚠utf8_ next_ fast - lean_
string_ ⚠utf8_ prev - lean_
string_ ⚠utf8_ set - Consumes
s, borrowsi0. - lean_
string_ ⚠validate_ utf8 - murmur_
hash_ 64a - MurmurHash64A of the bytes, as
hash_strinhash.cpp.