mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 11:52:19 +00:00
add Str.releaseExcessCapacity
This commit is contained in:
parent
a80b25d044
commit
48f17a8e2c
11 changed files with 115 additions and 0 deletions
|
@ -559,6 +559,18 @@ pub(crate) fn run_low_level<'a, 'ctx, 'env>(
|
|||
bitcode::STR_RESERVE,
|
||||
)
|
||||
}
|
||||
StrReleaseExcessCapacity => {
|
||||
// Str.releaseExcessCapacity: Str -> Str
|
||||
arguments!(string);
|
||||
|
||||
call_str_bitcode_fn(
|
||||
env,
|
||||
&[string],
|
||||
&[],
|
||||
BitcodeReturns::Str,
|
||||
bitcode::STR_RELEASE_EXCESS_CAPACITY,
|
||||
)
|
||||
}
|
||||
StrAppendScalar => {
|
||||
// Str.appendScalar : Str, U32 -> Str
|
||||
arguments!(string, capacity);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue