check / check (push) Canceled after 0s
A consumer of the checker crate needs no path into this repository. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HS8WZziDnyxunC23MUxrLp
18 lines
5.6 KiB
HTML
18 lines
5.6 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="The specification’s own checker (`plan/served.md` P13 step 5): every example’s expected figures derived from its rule’s symbolic form, by an engine-free reference model with exact decimals."><title>bookspec_checker::derive - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2"href="../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../static.files/rustdoc-0c87338a.css"><meta name="rustdoc-vars" data-root-path="../../" data-static-root-path="../../static.files/" data-current-crate="bookspec_checker" data-themes="" data-resource-suffix="" data-rustdoc-version="1.99.1 (58cf8f9c3 2026-10-13)" data-channel="1.99.1" data-search-js="search-cf4fc35e.js" data-stringdex-js="stringdex-b5109af9.js" data-settings-js="settings-170eb4bf.js" ><script src="../../static.files/storage-41dd4d93.js"></script><script defer src="../sidebar-items.js"></script><script defer src="../../static.files/main-417ebf0a.js"></script><noscript><link rel="stylesheet" href="../../static.files/noscript-9f56287d.css"></noscript><link rel="alternate icon" type="image/png" href="../../static.files/favicon-32x32-eab170b8.png"><link rel="icon" type="image/svg+xml" href="../../static.files/favicon-044be391.svg"></head><body class="rustdoc mod"><a class="skip-main-content" href="#main-content">Skip to main content</a><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><rustdoc-topbar><h2><a href="#">Module derive</a></h2></rustdoc-topbar><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../bookspec_checker/index.html">bookspec_<wbr>checker</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Module derive</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#enums" title="Enums">Enums</a></li><li><a href="#functions" title="Functions">Functions</a></li></ul></section><div id="rustdoc-modnav"><h2 class="in-crate"><a href="../index.html">In crate bookspec_<wbr>checker</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><section id="main-content" class="content" tabindex="-1"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../index.html">bookspec_checker</a></div><h1>Module <span>derive</span> <button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"><a class="src" href="../../src/bookspec_checker/derive.rs.html#1-680">Source</a> </span></div><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The specification’s own checker (<code>plan/served.md</code> P13 step 5):
|
||
every example’s expected figures derived from its rule’s symbolic
|
||
form, by an engine-free reference model with exact decimals.</p>
|
||
<p>The runner asks an <em>engine</em> whether it agrees with an example. This
|
||
module asks whether the <em>example</em> agrees with the specification: it
|
||
replays the example’s events on the smallest ledger the rules of
|
||
<code>bookspec/spec/*.md</code> describe (entries, reversals, a close, a bill, an
|
||
invoice) and computes each expectation it can from the symbolic forms
|
||
(<code>sum</code> of signed values, normal balances, the accounting equation,
|
||
net income). An expectation whose figure disagrees with the
|
||
derivation, or an event whose refusal the rules do not justify, fails
|
||
the specification’s build, before any engine is consulted.</p>
|
||
<p>What the model does not cover (depreciation, schedules, members,
|
||
1099s, formats, the cash-flow sections) is not derived here: an
|
||
expectation is <a href="enum.Derived.html#variant.Skipped" title="variant bookspec_checker::derive::Derived::Skipped"><code>Derived::Skipped</code></a> with the reason, never silently
|
||
passed, and the example is still checked by the engines.</p>
|
||
</div></details><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.Derivation.html" title="struct bookspec_checker::derive::Derivation">Derivation</a></dt><dd>The derivation of one example: one result per event that was refused
|
||
and per expectation.</dd></dl><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.Derived.html" title="enum bookspec_checker::derive::Derived">Derived</a></dt><dd>What the derivation found of one expectation or event.</dd></dl><h2 id="functions" class="section-header">Functions<a href="#functions" class="anchor">§</a></h2><dl class="item-table"><dt><a class="fn" href="fn.derive.html" title="fn bookspec_checker::derive::derive">derive</a></dt><dd>Derive what the specification says about <code>ex</code>.</dd></dl></section></div></main></body></html> |