Does nothing and returns a successful Unit result; useful as a default zero-argument callback.
Signature
It is a concrete function value, so it can be stored in Button.action without a string callback name or a host effect.
Returns
Examples
Default action
noop is assignable to a zero-argument recoverable callback.
main.kj
Loading…Drag to orbit · select to inspect
0 entities
Scene controls
Results
Loading the language runtime…
Output 0
No output.
State
Compile source to inspect its values.
TraceNo execution yet
- Executed source spans appear here.
Expected output
(no log output)
Rust definition
Rust interpreter builtin dispatch; Type is func() -> Res[Unit, DataError].
View Rust documentation →Support: runtime