Collections
collections β API Reference
Section titled βcollections β API ReferenceβImport:
std/collections.axs
Public Functions (17)
Section titled βPublic Functions (17)β| Function | Signature | Return Type |
|---|---|---|
vec_new | () | (ptr i64) |
vec_with_capacity | (cap: i64) | (ptr i64) |
vec_len | (v: (ptr i64)) | i64 |
vec_cap | (v: (ptr i64)) | i64 |
vec_push | (v: (ptr i64), val: i64) | void |
vec_pop | (v: (ptr i64)) | i64 |
vec_get | (v: (ptr i64), i: i64) | i64 |
vec_set | (v: (ptr i64), i: i64, val: i64) | void |
vec_clear | (v: (ptr i64)) | void |
vec_is_empty | (v: (ptr i64)) | bool |
vec_last | (v: (ptr i64)) | i64 |
vec_first | (v: (ptr i64)) | i64 |
vec_swap | (v: (ptr i64), i: i64, j: i64) | void |
vec_reverse | (v: (ptr i64)) | void |
vec_contains | (v: (ptr i64), val: i64) | bool |
vec_index_of | (v: (ptr i64), val: i64) | i64 |
vec_free | (v: (ptr i64)) | void |
Signatures
Section titled βSignaturesβvec_new() β (ptr i64)vec_with_capacity(cap: i64) β (ptr i64)vec_len(v: (ptr i64)) β i64vec_cap(v: (ptr i64)) β i64vec_push(v: (ptr i64), val: i64) β voidvec_pop(v: (ptr i64)) β i64vec_get(v: (ptr i64), i: i64) β i64vec_set(v: (ptr i64), i: i64, val: i64) β voidvec_clear(v: (ptr i64)) β voidvec_is_empty(v: (ptr i64)) β boolvec_last(v: (ptr i64)) β i64vec_first(v: (ptr i64)) β i64vec_swap(v: (ptr i64), i: i64, j: i64) β voidvec_reverse(v: (ptr i64)) β voidvec_contains(v: (ptr i64), val: i64) β boolvec_index_of(v: (ptr i64), val: i64) β i64vec_free(v: (ptr i64)) β voidFFI Extern Declarations (5)
Section titled βFFI Extern Declarations (5)βThese are private C/system function bindings used internally by the module.
| Symbol | Parameters | Return Type |
|---|---|---|
malloc | i64 | (ptr i64) |
realloc | (ptr i64), i64 | (ptr i64) |
free | (ptr i64) | void |
memcpy | (ptr i64), (ptr i64), i64 | (ptr i64) |
axon_panic | string | void |
Internal Functions (2)
Section titled βInternal Functions (2)βThese functions are module-private and not accessible via import.
| Function | Parameters | Return Type |
|---|---|---|
vec_data | (v: (ptr i64)) | (ptr i64) |
vec_grow | (v: (ptr i64), new_cap: i64) | void |
Auto-generated from std/collections.axs by scripts/gen_docs.sh