Expand description
The typed built-in method operation (#3164).
A built-in method call is resolved by the checker to a KernelOp and
carried in crate::checker::Callee::Kernel, so the emitter and the editor
tooling match on a resolved enum rather than re-deriving the operation from
the method’s spelling. One enum per receiver kind, declared once here with
each operation’s source spelling and display signature; the completion
tables in crate::kernel_methods are generated from the same declaration.
Structs§
- Kernel
Method - One built-in kernel method: its name and a display signature.
Enums§
- BytesOp
- The
Byteskernel (v0.110, ADR 0142). Equality is an operator (D4, content compare); the kernel is length plus the String-interop bridge (D3). #2016 (standard-library K1) addsconcat,slice,compare(a method:Bytesstays unorderable), hex and base64url. - Bytes
Static - The
Bytesstatic constructors (v0.110, ADR 0142 D2). - Cell
Store Op - The one method-shaped operation of a
store Cell[T](v0.98, ADR 0125). - Connection
Op Connection[F](v0.102): the held-resource operations. Not in the completion registry.- Decimal
Op - The
Decimalkernel (#2622).roundanddivtake aRoundingMode(RoundingMode.HalfEven), read syntactically at that argument. - Decimal
Static Decimal.parse(s)/Decimal.fromInt(n)(#2622).- Duration
Op - The
Durationkernel (v0.86, ADR 0112). Comparison/arithmetic are operators (D3/D4); the kernel is the explicit escape to raw milliseconds (D5). - Duration
Static Duration.millis(n)(v0.86, ADR 0112).- Effect
Op Effect[T](#2683, #2711, #3437):within,raceanddetach, on everyEffect.- Effect
Result Op - The
Effect[Result[T, E]]combinators (v0.152, ADR 0176; design doc §2.8.3), beyondEffectOp: the compiler-synthesised methods on the universal cross-context shape. - FloatOp
- The
Floatnumeric kernel (v0.21). - Float
Static Float.parse(s), and the K6b (#2598) constantsFloat.pi()/Float.e().- Form
Static Form.decode[T]/Form.encode(v)(#3276).- Http
Result Op HttpResult[T](#3277): attach a cookie to a response, clear one, or read the cookies a result carries (a test’s view of what the router will send).- Instant
Op - The
Instantkernel (v0.90, ADR 0114). Comparison/arithmetic are operators (D3); the kernel is the explicit escape to raw epoch milliseconds (D6). - Instant
Static Instant.fromEpochMillis(n)/Instant.fromIso(s).- IntOp
- The
Intnumeric kernel (v0.21). - IntStatic
Int.parse(s)(v0.22a).- Intrinsic
Ns - The namespace a
crate::checker::Callee::Intrinsicbelongs to: the built-in type (or, forTestRun, the test-body value) a static operation hangs off. Closed: every namespace the checker records is a variant, so a consumer matches exhaustively rather than comparing against abuiltin_namesconstant. - Json
Static - The typed
Jsoncodec statics (v0.22b, ADR 0045). - Kernel
Op - A resolved built-in method: the receiver kind and the operation on it.
- ListOp
List[T](v0.20b; v0.88 adds the ADR 0116 query/collection vocabulary).- List
Static List.empty().- LogStore
Op - The one effectful write of a
store Log[T](v0.95, ADR 0121). - LogWindow
Op - The time-window roots of a
store Log[T]: they lift the log into a lazyQuery[T]. - MapOp
Map[K, V](v0.20b).- MapStatic
Map.empty().- MapStore
Op - The entry operations of a
store Map[K, V]and astore Cache[K, V](the same names; a cache’s apply expiry). ADR 0110, ADR 0113. - Option
Op Option[T]combinators (v0.22a).- QueryOp
Query[T](v0.91, ADR 0115; joins/grouping v0.94, ADR 0116/0120) — the lazy storage-query vocabulary astorecollection lifts into (astore Map’s.entries/.keys/.values, astore Log’s time-window roots, or a barestore Mapused as a value). Builders stay lazy (Query[U]); terminals fold into the agent’s storage capability (Effect[T]). MirrorsListOp’s eager vocabulary; dispatched incrate::checker::kernels::check_query_kernel_method, which matches on it exhaustively.- Request
Cookies Op RequestCookies(#3277): an HTTP handler’s read-only view of the request’s cookies, for a name a record field cannot spell (__Host-sid).- Request
Cookies Static RequestCookies.of(pairs)/RequestCookies.empty()(#3277).- Request
Headers Op RequestHeaders(#2341, L4): an HTTP handler’s read-only view of the request’s headers.- Request
Headers Static RequestHeaders.of(lines)/RequestHeaders.empty()(#2341, L4).- Request
Query Op RequestQuery(#2854): an HTTP handler’s read-only view of the request’s query string.- Request
Query Static RequestQuery.of(pairs)/RequestQuery.empty()(#2854).- Result
Op Result[T, E]combinators (v0.22a).- SetOp
- The
Setkernel (K6a, #2596): what Bynk cannot write over a list. The combinators (union,intersect, …) are thebynk.setcommons. - SetStatic
Set.empty()/Set.of(xs)(K6a, #2596).- SetStore
Op - The entry operations of a
store Set[T](v0.83). - Static
Op - A resolved static intrinsic: the operation a
crate::checker::Callee::Intrinsicnames, in the closed vocabulary of its namespace. Built by the checker once the call’s method name is known to belong to the namespace, so an unknown method never gets a callee. - Store
Entry Op - A resolved effectful entry operation on a
storefield, carried incrate::checker::Callee::Store: the field’s kind and the operation on it. - Store
Query Op - A resolved lifting operation on a
storefield, carried incrate::checker::Callee::Query: a query builder or terminal (QueryOp), or aLog’s time-window root (LogWindowOp). - Stream
Op Stream[T](v0.100): the lazy builders and the draining terminal. Not in the completion registry (crate::kernel_methods::ALL_METHODS).- Stream
Static Stream.of(xs)(v0.100).- String
Op - The
Stringkernel (v0.22a; UTF-16 code units, exceptchars). - Test
Connection Op TestConnection[F](#3051): a case’s recording handle for afrom websocketconnection; a test body only.- Test
Connection Static TestConnection[F](), the test-side connection constructor.- Test
RunStatic run.id, a test run’s identity (#2138).- Token
Claims Op TokenClaims(#2380, L5): anOidcactor’s verified token claims.- Token
Claims Static TokenClaims.of(lines)(#2380, L5).- Yaml
Static Yaml.decode[T](#3214).