Expand description
v0.30.2 (ADR 0063): the enumerable kernel-method registry.
The value methods of the built-in kernels (List/Map/Option/Result/
String/Int/Float) are dispatched by the checker in
crate::checker’s check_*_kernel_method functions, where the method
names live in match arms — authoritative for typing, but not
enumerable. This module is the enumerable view the LSP reads for .-member
completion: per-kernel (name, signature) tables and a methods_for
mapping from a receiver Ty to its methods.
The tables are generated from the typed operations in crate::kernel_op
(#3164), where each method is declared once with its spelling and signature;
the checker resolves a call to that enum and carries it in
crate::checker::Callee::Kernel.
The signatures are human-readable Bynk-surface display strings (generic in
the element/key/value type), for completion detail — not the checker’s
Ty-typed signatures. The checker matches on the typed operations
exhaustively, so the table can neither list a method the checker rejects nor
omit one it accepts.
Re-exports§
pub use crate::kernel_op::KernelMethod;
Constants§
- ALL_
METHODS - Every method table above, by the type a user writes. The one enumerable
registry (read by the wasm
bynk_reference); a test pins it against thepub const *_METHODSdeclarations, so a new table cannot be left out. - BYTES_
METHODS - The
Byteskernel (v0.110, ADR 0142). - DECIMAL_
METHODS - The
Decimalkernel (#2622). - DURATION_
METHODS - The
Durationkernel (v0.86, ADR 0112). - EFFECT_
METHODS - The methods of every
Effect[T](#2683, #2711):within,raceanddetach. - EFFECT_
RESULT_ METHODS - The
Effect[Result[T, E]]combinators (v0.152, ADR 0176):withinandrace(on everyEffect) alongside the compiler-synthesised combinators. - FLOAT_
METHODS - The
Floatkernel. - HTTP_
RESULT_ METHODS HttpResult[T](#3277):withCookie,clearCookie,cookies.- INSTANT_
METHODS - The
Instantkernel (v0.90, ADR 0114). - INT_
METHODS - The
Intkernel. - LIST_
METHODS List[T](v0.20b; v0.88 adds the ADR 0116 query/collection vocabulary).- MAP_
METHODS Map[K, V](v0.20b).- OPTION_
METHODS Option[T]combinators (v0.22a).- QUERY_
METHODS Query[T](v0.91, ADR 0115; joins/grouping v0.94, ADR 0116/0120): the lazy storage-query vocabulary astorecollection lifts into.- REQUEST_
COOKIES_ METHODS - An HTTP handler’s raw
cookies(#3277). - REQUEST_
HEADERS_ METHODS - An HTTP handler’s
headers(#2341). - REQUEST_
QUERY_ METHODS - An HTTP handler’s
query(#2854). - RESULT_
METHODS Result[T, E]combinators (v0.22a).- SET_
METHODS - The
Setkernel (K6a, #2596): what Bynk cannot write over a list. The combinators (union,intersect, …) are thebynk.setcommons. - STRING_
METHODS - The
Stringkernel (v0.22a; UTF-16 code units, exceptchars). - TEST_
CONNECTION_ METHODS - A case’s recording
TestConnection[F](#3051). - TOKEN_
CLAIMS_ METHODS - An
Oidcbinder’s claims (#2380).
Functions§
- methods_
for - The value methods of a receiver type, or
&[]for a type with no kernel methods (record/sum named types,Bool,Effect, …). Record fields are resolved separately by the LSP (they need the type declaration).