Expand description
The operation contract: keyed, shape-checked calls dispatched on objects.
The kernel defines the Op trait, operation specs and keys, and the
resolve/invoke surface plus the well-known core operation keys; libraries
implement the concrete operations.
Structs§
- OpSpec
- The declared contract of an operation: its key, shapes, effects, and required capabilities.
- Resolved
Op - An operation resolved against a target, ready to be invoked.
Enums§
Traits§
- Op
- A keyed, shape-checked operation dispatched on an object.
Functions§
- check_
shape_ if_ available - Checks
inputagainst a shape reference, passing silently when the shape isAnyor not registered. - core_
any_ ref - The shape reference that accepts any value (
core:Any). - core_
call_ op_ key - The well-known key for the core call operation (
core:call@v1). - core_
class_ symbol_ op_ key - The well-known key for reading a class’s symbol.
- core_
dir_ is_ dir_ op_ key - The well-known key for testing whether a directory entry is a directory.
- core_
expr_ snapshot_ op_ key - The well-known key for snapshotting an object as an
Expr. - core_
force_ op_ key - The well-known key for forcing a thunk.
- core_
list_ items_ op_ key - The well-known key for reading a list’s items.
- core_
number_ domain_ symbol_ op_ key - The well-known key for reading a number’s domain symbol.
- core_
number_ value_ op_ key - The well-known key for reading a number value.
- core_
object_ encoding_ op_ key - The well-known key for reading an object’s encoding.
- core_
read_ construct_ op_ key - The well-known key for read-time construction.
- core_
realize_ start_ op_ key - The well-known key for starting a distributed eval realization.
- core_
seq_ close_ op_ key - The well-known key for closing a sequence.
- core_
seq_ next_ op_ key - The well-known key for advancing a sequence.
- core_
shape_ check_ term_ op_ key - The well-known key for checking a term against a shape.
- core_
shape_ check_ value_ op_ key - The well-known key for checking a value against a shape.
- core_
shape_ describe_ op_ key - The well-known key for describing a shape.
- core_
table_ entries_ op_ key - The well-known key for reading a table’s entries.
- invoke_
op - Resolves and runs an operation on
target, enforcing itsOpSpec. - resolve_
op - Resolves an operation key against a target without invoking it.