Home / Docs / Standard library

Built-in methods

Release v0.4.0

The methods that are built in and resolved by the type of their receiver, one page each: .len (spec/14 §2), the methods of maps (spec/21 §2), the conversions (spec/18 §4) and the wrapping, saturating and bit operations of fixed-width integers (spec/18 §5). They have no declaration, so each signature line is written by una and tested against its checker.

Operators, comparisons, equality and interpolation are built in and not listed here (spec/14 §2).

By area

Unstable, not part of the specification: see docs/std/README.md. Hand-written; crates/una-cli/tests/std_listing.rs checks it against the listing.

The items described in full so far, with parameters, failures, cost where stated, and an example; 21 of this module's 52 are not yet.

Text

Numbers

Maps

Methods

Generated from una v0.4.0 (docs/std/builtins.json, which is not part of the specification): built-in methods have no declaration, so una writes these signature lines and tests each against its checker. The specification governs: spec/14 §2.