Skip to main content

Module kernel_op

Module kernel_op 

Source
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§

KernelMethod
One built-in kernel method: its name and a display signature.

Enums§

BytesOp
The Bytes kernel (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) adds concat, slice, compare (a method: Bytes stays unorderable), hex and base64url.
BytesStatic
The Bytes static constructors (v0.110, ADR 0142 D2).
CellStoreOp
The one method-shaped operation of a store Cell[T] (v0.98, ADR 0125).
ConnectionOp
Connection[F] (v0.102): the held-resource operations. Not in the completion registry.
DecimalOp
The Decimal kernel (#2622). round and div take a RoundingMode (RoundingMode.HalfEven), read syntactically at that argument.
DecimalStatic
Decimal.parse(s) / Decimal.fromInt(n) (#2622).
DurationOp
The Duration kernel (v0.86, ADR 0112). Comparison/arithmetic are operators (D3/D4); the kernel is the explicit escape to raw milliseconds (D5).
DurationStatic
Duration.millis(n) (v0.86, ADR 0112).
EffectOp
Effect[T] (#2683, #2711, #3437): within, race and detach, on every Effect.
EffectResultOp
The Effect[Result[T, E]] combinators (v0.152, ADR 0176; design doc §2.8.3), beyond EffectOp: the compiler-synthesised methods on the universal cross-context shape.
FloatOp
The Float numeric kernel (v0.21).
FloatStatic
Float.parse(s), and the K6b (#2598) constants Float.pi() / Float.e().
FormStatic
Form.decode[T] / Form.encode(v) (#3276).
HttpResultOp
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).
InstantOp
The Instant kernel (v0.90, ADR 0114). Comparison/arithmetic are operators (D3); the kernel is the explicit escape to raw epoch milliseconds (D6).
InstantStatic
Instant.fromEpochMillis(n) / Instant.fromIso(s).
IntOp
The Int numeric kernel (v0.21).
IntStatic
Int.parse(s) (v0.22a).
IntrinsicNs
The namespace a crate::checker::Callee::Intrinsic belongs to: the built-in type (or, for TestRun, 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 a builtin_names constant.
JsonStatic
The typed Json codec statics (v0.22b, ADR 0045).
KernelOp
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).
ListStatic
List.empty().
LogStoreOp
The one effectful write of a store Log[T] (v0.95, ADR 0121).
LogWindowOp
The time-window roots of a store Log[T]: they lift the log into a lazy Query[T].
MapOp
Map[K, V] (v0.20b).
MapStatic
Map.empty().
MapStoreOp
The entry operations of a store Map[K, V] and a store Cache[K, V] (the same names; a cache’s apply expiry). ADR 0110, ADR 0113.
OptionOp
Option[T] combinators (v0.22a).
QueryOp
Query[T] (v0.91, ADR 0115; joins/grouping v0.94, ADR 0116/0120) — the lazy storage-query vocabulary a store collection lifts into (a store Map’s .entries/.keys/.values, a store Log’s time-window roots, or a bare store Map used as a value). Builders stay lazy (Query[U]); terminals fold into the agent’s storage capability (Effect[T]). Mirrors ListOp’s eager vocabulary; dispatched in crate::checker::kernels::check_query_kernel_method, which matches on it exhaustively.
RequestCookiesOp
RequestCookies (#3277): an HTTP handler’s read-only view of the request’s cookies, for a name a record field cannot spell (__Host-sid).
RequestCookiesStatic
RequestCookies.of(pairs) / RequestCookies.empty() (#3277).
RequestHeadersOp
RequestHeaders (#2341, L4): an HTTP handler’s read-only view of the request’s headers.
RequestHeadersStatic
RequestHeaders.of(lines) / RequestHeaders.empty() (#2341, L4).
RequestQueryOp
RequestQuery (#2854): an HTTP handler’s read-only view of the request’s query string.
RequestQueryStatic
RequestQuery.of(pairs) / RequestQuery.empty() (#2854).
ResultOp
Result[T, E] combinators (v0.22a).
SetOp
The Set kernel (K6a, #2596): what Bynk cannot write over a list. The combinators (union, intersect, …) are the bynk.set commons.
SetStatic
Set.empty() / Set.of(xs) (K6a, #2596).
SetStoreOp
The entry operations of a store Set[T] (v0.83).
StaticOp
A resolved static intrinsic: the operation a crate::checker::Callee::Intrinsic names, 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.
StoreEntryOp
A resolved effectful entry operation on a store field, carried in crate::checker::Callee::Store: the field’s kind and the operation on it.
StoreQueryOp
A resolved lifting operation on a store field, carried in crate::checker::Callee::Query: a query builder or terminal (QueryOp), or a Log’s time-window root (LogWindowOp).
StreamOp
Stream[T] (v0.100): the lazy builders and the draining terminal. Not in the completion registry (crate::kernel_methods::ALL_METHODS).
StreamStatic
Stream.of(xs) (v0.100).
StringOp
The String kernel (v0.22a; UTF-16 code units, except chars).
TestConnectionOp
TestConnection[F] (#3051): a case’s recording handle for a from websocket connection; a test body only.
TestConnectionStatic
TestConnection[F](), the test-side connection constructor.
TestRunStatic
run.id, a test run’s identity (#2138).
TokenClaimsOp
TokenClaims (#2380, L5): an Oidc actor’s verified token claims.
TokenClaimsStatic
TokenClaims.of(lines) (#2380, L5).
YamlStatic
Yaml.decode[T] (#3214).