add Str.releaseExcessCapacity

This commit is contained in:
Brendan Hansknecht 2023-03-14 21:57:19 -07:00
parent a80b25d044
commit 48f17a8e2c
No known key found for this signature in database
GPG key ID: 0EA784685083E75B
11 changed files with 115 additions and 0 deletions

View file

@ -32,6 +32,7 @@ pub enum LowLevel {
StrGetCapacity,
StrWithCapacity,
StrGraphemes,
StrReleaseExcessCapacity,
ListLen,
ListWithCapacity,
ListReserve,
@ -259,6 +260,7 @@ map_symbol_to_lowlevel! {
StrGetCapacity <= STR_CAPACITY,
StrWithCapacity <= STR_WITH_CAPACITY,
StrGraphemes <= STR_GRAPHEMES,
StrReleaseExcessCapacity <= STR_RELEASE_EXCESS_CAPACITY,
ListLen <= LIST_LEN,
ListGetCapacity <= LIST_CAPACITY,
ListWithCapacity <= LIST_WITH_CAPACITY,

View file

@ -1327,6 +1327,7 @@ define_builtins! {
54 STR_WITH_PREFIX: "withPrefix"
55 STR_GRAPHEMES: "graphemes"
56 STR_IS_VALID_SCALAR: "isValidScalar"
57 STR_RELEASE_EXCESS_CAPACITY: "releaseExcessCapacity"
}
6 LIST: "List" => {
0 LIST_LIST: "List" exposed_apply_type=true // the List.List type alias