Scanned by phdoc 0.1.0 on 2026-11-22 (Exocortical Epoch 106). Project root: /source/phext-lattice. Scanned at commit 6ffc18b162bdcd531bdbaae72e2216f4871395e4. Every fact in this document was read from its own records: its manifests, its git log, and its source text. Nothing here was guessed.
This document holds: what the project depends on, who wrote it, how large and how complex it is, the state of its quality signals, the RFCs it declares, where its upstream repo lives, and a plain English note for every public method and command.
License stated in the manifest: MIT.
Direct dependencies: 19.
Total packages in the lock file, this one included: 218.
The git log holds 285 commits. The authors, by commit count:
The measure is stated plainly, and no single score is made: lines are counted per file as total lines, blank lines, comment lines, and code lines (total minus blank minus comment). Functions are counted where the scanner reads them, and the largest functions are given by their span in lines.
All languages: 62 files, 39762 lines total, 32289 lines of code. Functions read: 1410.
Largest files:
Largest functions, by span in lines:
Each signal is named and shown with its evidence. A signal is a fact the scanner read, not a grade.
No rfcs.json was found in this project, so it declares no RFCs. This is a finding, not an error: the project has not made an RFC declaration.
Every public method and command the scanner found, each with a plain English note. A note says where its words came from: the code's own doc comment, the item's signature, the user's agent, or it is marked awaiting a summary.
__init__ (bench/wiki/extract_zim.py:27) — Function __init__ takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what ithandle_starttag (bench/wiki/extract_zim.py:31) — Function handle_starttag takes self, tag, attrs and gives back nothing; it does its work on what it is given.handle_endtag (bench/wiki/extract_zim.py:41) — Function handle_endtag takes self, tag and gives back nothing; it does its work on what it is given.handle_data (bench/wiki/extract_zim.py:47) — Function handle_data takes self, data and gives back nothing; it does its work on what it is given.text (bench/wiki/extract_zim.py:51) — Function text takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is gmain (bench/wiki/extract_zim.py:58) — Function main takes zim_path, out_dir and gives back nothing; it does its work on what it is given.main (bench/wiki/make_queries.py:22) — Function main takes d, n=500 and gives back nothing; it does its work on what it is given.load (bench/wiki/report.py:6) — Function load takes work, s, name and gives back nothing; it does its work on what it is given.lat (bench/wiki/report.py:11) — Function lat takes v, key="p50_us" and gives back nothing; it does its work on what it is given.mb (bench/wiki/report.py:18) — Function mb takes b and gives back nothing; it does its work on what it is given.table (bench/wiki/report.py:22) — Function table takes head, rows and gives back nothing; it does its work on what it is given.main (bench/wiki/report.py:28) — Function main takes work, *scales and gives back nothing; it does its work on what it is given.tree (bench/wiki/storage.py:16) — Function tree takes p and gives back nothing; it does its work on what it is given.one (bench/wiki/storage.py:25) — Function one takes p and gives back nothing; it does its work on what it is given.main (bench/wiki/storage.py:30) — Function main takes out and gives back nothing; it does its work on what it is given.load_corpus (bench/wiki/zim_bench.py:20) — Function load_corpus takes d, scale and gives back nothing; it does its work on what it is given.__init__ (bench/wiki/zim_bench.py:39) — Function __init__ takes self, title, text and gives back nothing; it does its work on what it is given.has_indexdata (bench/wiki/zim_bench.py:42) — Function has_indexdata takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whaget_title (bench/wiki/zim_bench.py:43) — Function get_title takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what itget_content (bench/wiki/zim_bench.py:44) — Function get_content takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whatget_keywords (bench/wiki/zim_bench.py:45) — Function get_keywords takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whatget_wordcount (bench/wiki/zim_bench.py:46) — Function get_wordcount takes no inputs beyond the value it is called on, and gives back nothing; it does its work on wha__init__ (bench/wiki/zim_bench.py:50) — Function __init__ takes self, path, title, text, front, index and gives back nothing; it does its work on what it is givget_path (bench/wiki/zim_bench.py:53) — Function get_path takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what itget_title (bench/wiki/zim_bench.py:54) — Function get_title takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what itget_mimetype (bench/wiki/zim_bench.py:55) — Function get_mimetype takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whatget_contentprovider (bench/wiki/zim_bench.py:56) — Function get_contentprovider takes no inputs beyond the value it is called on, and gives back nothing; it does its workget_hints (bench/wiki/zim_bench.py:57) — Function get_hints takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what itget_indexdata (bench/wiki/zim_bench.py:58) — Function get_indexdata takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whabuild_zim (bench/wiki/zim_bench.py:61) — Function build_zim takes arts, path, fulltext=True and gives back nothing; it does its work on what it is given.stats (bench/wiki/zim_bench.py:83) — Function stats takes ds and gives back nothing; it does its work on what it is given.time_each (bench/wiki/zim_bench.py:90) — Function time_each takes items, f and gives back nothing; it does its work on what it is given.drop_caches (bench/wiki/zim_bench.py:97) — Function drop_caches takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what__init__ (bench/wiki/zim_bench.py:106) — Function __init__ takes self, s and gives back nothing; it does its work on what it is given.below (bench/wiki/zim_bench.py:107) — Function below takes self, n and gives back nothing; it does its work on what it is given.fname (bench/wiki/zim_bench.py:113) — Function fname takes t and gives back nothing; it does its work on what it is given.main (bench/wiki/zim_bench.py:118) — Function main takes corpus, out, scale=1, original=None and gives back nothing; it does its work on what it is given.bfs (bench/wiki/zim_bench.py:152) — Function bfs takes seed and gives back nothing; it does its work on what it is given.backlinks (bench/wiki/zim_bench.py:166) — Function backlinks takes t and gives back nothing; it does its work on what it is given.exact (bench/wiki/zim_bench.py:176) — Function exact takes x and gives back nothing; it does its work on what it is given.suggest (bench/wiki/zim_bench.py:185) — Function suggest takes x and gives back nothing; it does its work on what it is given.fulltext_top1 (bench/wiki/zim_bench.py:195) — Function fulltext_top1 takes x and gives back nothing; it does its work on what it is given.ft (bench/wiki/zim_bench.py:204) — Function ft takes x and gives back nothing; it does its work on what it is given.main (build.rs:50) — The entry point: the program starts here.die (deploy/deploy.sh:59) — Function die takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is giusage (deploy/deploy.sh:64) — Function usage takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it israndom_hex (deploy/deploy.sh:85) — Function random_hex takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what iinstall_secret (deploy/deploy.sh:90) — Function install_secret takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whas_owner (deploy/deploy.sh:101) — Function as_owner takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what itsponsor_url_ok (deploy/deploy.sh:108) — Function sponsor_url_ok takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whvalidate_sponsor_url (deploy/deploy.sh:134) — Function validate_sponsor_url takes no inputs beyond the value it is called on, and gives back nothing; it does its workresolve_sponsor_url (deploy/deploy.sh:141) — Function resolve_sponsor_url takes no inputs beyond the value it is called on, and gives back nothing; it does its workwrite_sponsor_env (deploy/deploy.sh:150) — Function write_sponsor_env takes no inputs beyond the value it is called on, and gives back nothing; it does its work onapply_sponsor_env (deploy/deploy.sh:183) — Function apply_sponsor_env takes no inputs beyond the value it is called on, and gives back nothing; it does its work ondns_points_here (deploy/deploy.sh:208) — Function dns_points_here takes no inputs beyond the value it is called on, and gives back nothing; it does its work on wfile_sha256 (deploy/deploy.sh:212) — Function file_sha256 takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whatread_root_file (deploy/deploy.sh:218) — Function read_root_file takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whnginx_template (deploy/deploy.sh:223) — Function nginx_template takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whrender_site_body (deploy/deploy.sh:240) — Function render_site_body takes no inputs beyond the value it is called on, and gives back nothing; it does its work onadopt_live_ssl (deploy/deploy.sh:252) — Function adopt_live_ssl takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whpath_exists (deploy/deploy.sh:288) — Function path_exists takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whatdrop_missing_dhparam (deploy/deploy.sh:296) — Function drop_missing_dhparam takes no inputs beyond the value it is called on, and gives back nothing; it does its workstamp_managed (deploy/deploy.sh:309) — Function stamp_managed takes no inputs beyond the value it is called on, and gives back nothing; it does its work on whawrite_bootstrap_body (deploy/deploy.sh:318) — Function write_bootstrap_body takes no inputs beyond the value it is called on, and gives back nothing; it does its worknginx_disposition (deploy/deploy.sh:349) — Function nginx_disposition takes no inputs beyond the value it is called on, and gives back nothing; it does its work onwith_force (deploy/deploy.sh:383) — Function with_force takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what irequire_hardened_body (deploy/deploy.sh:392) — Function require_hardened_body takes no inputs beyond the value it is called on, and gives back nothing; it does its worinstall_rendered_site (deploy/deploy.sh:409) — Function install_rendered_site takes no inputs beyond the value it is called on, and gives back nothing; it does its worapply_rendered_site (deploy/deploy.sh:443) — Function apply_rendered_site takes no inputs beyond the value it is called on, and gives back nothing; it does its workrun_check (deploy/deploy.sh:492) — Function run_check takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what itmain (deploy/deploy.sh:611) — Function main takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is gmain (examples/wikibench.rs:831) — The entry point: the program starts here.fmt (scripts/build_wavefront_explorer.py:30) — Function fmt takes coord and gives back nothing; it does its work on what it is given.parse_phext (scripts/build_wavefront_explorer.py:36) — Function parse_phext takes data and gives back nothing; it does its work on what it is given.region_of (scripts/build_wavefront_explorer.py:56) — Function region_of takes values and gives back nothing; it does its work on what it is given.summarize (scripts/build_wavefront_explorer.py:65) — Function summarize takes evidence and gives back nothing; it does its work on what it is given.entries_of (scripts/build_wavefront_explorer.py:73) — Yield (heading, body) per entry in a person scroll.handle_of (scripts/build_wavefront_explorer.py:91) — Function handle_of takes heading and gives back nothing; it does its work on what it is given.main (scripts/build_wavefront_explorer.py:100) — Function main takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is gfmt (scripts/build_wavefront_snapshot.py:42) — Function fmt takes coord and gives back nothing; it does its work on what it is given.parse_phext (scripts/build_wavefront_snapshot.py:48) — Dead-reckoning parse: walk bytes, split on delimiters, map to coords.handle_of (scripts/build_wavefront_snapshot.py:69) — Function handle_of takes name_part and gives back nothing; it does its work on what it is given.main (scripts/build_wavefront_snapshot.py:78) — Function main takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is gcheck (scripts/mcp-e2e/mcp_e2e.py:45) — Function check takes ok, label, detail="" and gives back nothing; it does its work on what it is given.skip (scripts/mcp-e2e/mcp_e2e.py:50) — Function skip takes label, why and gives back nothing; it does its work on what it is given.req (scripts/mcp-e2e/mcp_e2e.py:55) — Function req takes method, path, body=None, headers=None, budget_ms=None, label=None and gives back nothing; it does itsb64url (scripts/mcp-e2e/mcp_e2e.py:73) — Function b64url takes data: bytes and gives back str:.pkce (scripts/mcp-e2e/mcp_e2e.py:77) — Function pkce takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is gconsent_fields (scripts/mcp-e2e/mcp_e2e.py:82) — Function consent_fields takes page: str and gives back nothing; it does its work on what it is given.authorize_and_consent (scripts/mcp-e2e/mcp_e2e.py:92) — GET authorize (expect the consent page), POST approve, return thetoken_exchange (scripts/mcp-e2e/mcp_e2e.py:111) — Function token_exchange takes form, label, extra_headers=None and gives back nothing; it does its work on what it is givrpc (scripts/mcp-e2e/mcp_e2e.py:119) — Function rpc takes token, method, params=None, req_id=1, headers_extra=None, path="/mcp", label=None, budget_ms=None andtool (scripts/mcp-e2e/mcp_e2e.py:134) — Function tool takes token, name, args, label=None, budget_ms=None and gives back nothing; it does its work on what it isflow_code_and_token (scripts/mcp-e2e/mcp_e2e.py:141) — Function flow_code_and_token takes *, label, client_id, redirect_uri, state, verifier, and gives back nothing; it does ipkce_pair (scripts/mcp-e2e/mcp_e2e.py:170) — Function pkce_pair takes verifier and gives back nothing; it does its work on what it is given.assertion (scripts/mcp-e2e/mcp_e2e.py:384) — Function assertion takes jti and gives back nothing; it does its work on what it is given.cleanup (scripts/mcp-e2e/run.sh:15) — Function cleanup takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it istamp (scripts/mcp-e2e/sdk_flow.py:31) — Function stamp takes msg and gives back nothing; it does its work on what it is given.__init__ (scripts/mcp-e2e/sdk_flow.py:36) — Function __init__ takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what itmain (src/bin/phext_edit.rs:7879) — The entry point: the program starts here.dim (src/bin/phext_edit.rs:941) — A command named dim.forward (src/bin/phext_edit.rs:946) — A command named forward.backward (src/bin/phext_edit.rs:947) — A command named backward.next (src/bin/phext_edit.rs:948) — A command named next.prev (src/bin/phext_edit.rs:949) — A command named prev.goto (src/bin/phext_edit.rs:950) — A command named goto.home (src/bin/phext_edit.rs:955) — A command named home.base (src/bin/phext_edit.rs:962) — A command named base.full (src/bin/phext_edit.rs:1158) — A command named full.summary (src/bin/phext_edit.rs:1159) — A command named summary.children (src/bin/phext_edit.rs:1164) — A command named children.scrolls (src/bin/phext_edit.rs:1189) — A command named scrolls.matches (src/bin/phext_edit.rs:1197) — A command named matches.no-store (src/bin/phext_edit.rs:1545) — A command named no-store.saved (src/bin/phext_edit.rs:2333) — A command named saved.write_scroll (src/bin/phext_edit.rs:2479) — A command named write_scroll.list_phexts (src/bin/phext_edit.rs:2480) — A command named list_phexts.initialize (src/bin/phext_edit.rs:2486) — A command named initialize.ping (src/bin/phext_edit.rs:2680) — A command named ping.jsonrpc (src/bin/phext_edit.rs:2686) — A command named jsonrpc.https (src/bin/phext_edit.rs:3417) — A command named https.http (src/bin/phext_edit.rs:3418) — A command named http.authorization_code (src/bin/phext_edit.rs:3573) — A command named authorization_code.code (src/bin/phext_edit.rs:3592) — A command named code.private_key_jwt (src/bin/phext_edit.rs:3672) — A command named private_key_jwt.none (src/bin/phext_edit.rs:4628) — A command named none.client_secret_basic (src/bin/phext_edit.rs:4640) — A command named client_secret_basic.client_secret_post (src/bin/phext_edit.rs:4649) — A command named client_secret_post.refresh_token (src/bin/phext_edit.rs:4850) — A command named refresh_token.replay (src/bin/phext_edit.rs:4937) — A command named replay.phext_toc (src/bin/phext_edit.rs:5305) — A command named phext_toc.read_scroll (src/bin/phext_edit.rs:5331) — A command named read_scroll.search_scrolls (src/bin/phext_edit.rs:5347) — A command named search_scrolls.claims (src/bin/phext_edit.rs:5420) — A command named claims.joins (src/bin/phext_edit.rs:5433) — A command named joins.ok (src/bin/phext_edit.rs:5610) — A command named ok.submissions (src/bin/phext_edit.rs:5833) — A command named submissions.traversals (src/bin/phext_edit.rs:5984) — A command named traversals.--token (src/bin/phext_edit.rs:6482) — A command line flag, --token.--port (src/bin/phext_edit.rs:6486) — A command line flag, --port.--host (src/bin/phext_edit.rs:6486) — A command line flag, --host.--dir (src/bin/phext_edit.rs:6486) — A command line flag, --dir.--home (src/bin/phext_edit.rs:6486) — A command line flag, --home.--home-coord (src/bin/phext_edit.rs:6486) — A command line flag, --home-coord.--local (src/bin/phext_edit.rs:6495) — A command line flag, --local.--help (src/bin/phext_edit.rs:6495) — A command line flag, --help.phext (src/bin/phext_edit.rs:6536) — A command named phext.xml (src/bin/phext_edit.rs:6544) — A command named xml.--local opens the editor (src/bin/phext_edit.rs:6795) — A command line flag, --local opens the editor.found (src/bin/phext_edit.rs:8227) — A command named found.bought (src/bin/phext_edit.rs:8228) — A command named bought.patron (src/bin/phext_edit.rs:8229) — A command named patron.new (src/bin/phext_edit.rs:8230) — A command named new.lookup-form (src/bin/phext_edit.rs:8466) — A command named lookup-form.logout (src/bin/phext_edit.rs:8494) — A command named logout.claim-button (src/bin/phext_edit.rs:8522) — A command named claim-button.pending (src/bin/phext_edit.rs:8642) — A command named pending.upload-form (src/bin/phext_edit.rs:8668) — A command named upload-form.coord-link (src/bin/phext_edit.rs:10631) — A command named coord-link.--font-text: 'Emise' (src/bin/phext_edit.rs:12275) — A command line flag, --font-text: 'Emise'.--dim: #808080 (src/bin/phext_edit.rs:13328) — A command line flag, --dim: #808080.--dim: #9a9a9a (src/bin/phext_edit.rs:13329) — A command line flag, --dim: #9a9a9a.--field-border: #767676 (src/bin/phext_edit.rs:13330) — A command line flag, --field-border: #767676.main (src/bin/phext_nav.rs:179) — The entry point: the program starts here.main (src/bin/phext_tts.rs:17) — The entry point: the program starts here.coord (src/bin/phext_tts.rs:26) — A command named coord.ssml (src/bin/phext_tts.rs:33) — A command named ssml.special (src/bin/phext_tts.rs:41) — A command named special.table (src/bin/phext_tts.rs:48) — A command named table.batch (src/bin/phext_tts.rs:61) — A command named batch.extract (src/bin/phext_tts.rs:68) — A command named extract.help (src/bin/phext_tts.rs:75) — A command named help.--help (src/bin/phext_tts.rs:75) — A command line flag, --help.main (src/bin/uml6d_edit.rs:653) — The entry point: the program starts here.saved (src/bin/uml6d_edit.rs:586) — A command named saved.--port (src/bin/uml6d_edit.rs:672) — A command line flag, --port.--host (src/bin/uml6d_edit.rs:673) — A command line flag, --host.--dir (src/bin/uml6d_edit.rs:674) — A command line flag, --dir.coord-link (src/bin/uml6d_edit.rs:1429) — A command named coord-link.Tier (src/claims.rs:36) — A named choice named Tier.Tier::grant (src/claims.rs:44) — Function Tier::grant takes no inputs beyond the value it is called on, and gives back Grant.Grant (src/claims.rs:70) — A data shape named Grant.Claim (src/claims.rs:78) — A data shape named Claim.get (src/claims.rs:115) — The claim an account already holds, if any.record (src/claims.rs:128) — Record a claim, or return the one the account already holds — claiming twice changes nothing (a later buy-in updates thelist (src/claims.rs:153) — Every recorded claim, oldest first.set_tier (src/claims.rs:173) — Move an existing claim to a new tier (a buy-in landing, or a map republication finding the account).Dimension (src/coordinate_ext.rs:34) — -------------------------------------------------------------------------------------------------------- Dimension enum for editor navigation.Dimension::from_index (src/coordinate_ext.rs:67) — Convert 1-9 key index to dimension.name (src/coordinate_ext.rs:82) — Function name takes no inputs beyond the value it is called on, and gives back &'static str.delimiter (src/coordinate_ext.rs:97) — The delimiter byte for this dimension.CoordinateNav (src/coordinate_ext.rs:123) — -------------------------------------------------------------------------------------------------------- [UPSTREAM] Navigation trait: move forward/backward in a specific dimension.Position (src/cursor.rs:12) — Position within a scroll's text.Position::new (src/cursor.rs:20) — Function Position::new takes line: usize, col: usize and gives back Position.origin (src/cursor.rs:24) — Function origin takes no inputs beyond the value it is called on, and gives back Position.from_offset (src/cursor.rs:29) — Convert a byte offset in text to a Position.to_offset (src/cursor.rs:46) — Convert this Position to a byte offset in text.Selection (src/cursor.rs:76) — A selection range within a scroll.Selection::cursor (src/cursor.rs:85) — A zero-width selection (cursor) at a position.is_cursor (src/cursor.rs:90) — Whether this is a zero-width selection (just a cursor).start (src/cursor.rs:95) — The start of the selection (earlier position).end (src/cursor.rs:106) — The end of the selection (later position).ScrollCursor (src/cursor.rs:119) — The cursor state within a scroll.ScrollCursor::new (src/cursor.rs:131) — New cursor at the origin (0,0).at (src/cursor.rs:140) — New cursor at a specific position.position (src/cursor.rs:149) — Current cursor position (selection head).move_to (src/cursor.rs:154) — Move cursor to a position, collapsing any selection.select_to (src/cursor.rs:160) — Extend selection to a position (keep anchor, move head).move_left (src/cursor.rs:166) — Move cursor left by n characters within text.move_right (src/cursor.rs:173) — Move cursor right by n characters within text.move_up (src/cursor.rs:180) — Move cursor up by n lines, preserving column.move_down (src/cursor.rs:194) — Move cursor down by n lines, preserving column.move_home (src/cursor.rs:209) — Move to beginning of current line.move_end (src/cursor.rs:214) — Move to end of current line.move_top (src/cursor.rs:220) — Move to start of text.move_bottom (src/cursor.rs:225) — Move to end of text.move_word_forward (src/cursor.rs:232) — Move to the next word boundary.move_word_backward (src/cursor.rs:247) — Move to the previous word boundary.EditResult (src/editor.rs:16) — What happened after processing a key.CursorStyle (src/editor.rs:31) — Cursor rendering style.EditKey (src/editor.rs:42) — A key event abstraction (decoupled from any TUI/GUI framework).EditKeyCode (src/editor.rs:50) — A named choice named EditKeyCode.EditKey::char (src/editor.rs:68) — Function EditKey::char takes c: char and gives back EditKey.ctrl (src/editor.rs:72) — Function ctrl takes c: char and gives back EditKey.special (src/editor.rs:76) — Function special takes code: EditKeyCode and gives back EditKey.EditContext (src/editor.rs:83) — The editing context passed to modes.<'a> EditContext<'a>::new (src/editor.rs:95) — Function <'a> EditContext<'a>::new takes coordinate: Coordinate, text: &'a mut String, cursor: &'a mut ScrollCursor, undinsert (src/editor.rs:105) — Insert text at the cursor position.insert_newline (src/editor.rs:116) — Insert a newline at the cursor position.delete_backward (src/editor.rs:121) — Delete n characters before the cursor (backspace).delete_forward (src/editor.rs:135) — Delete n characters at the cursor position (delete key).delete_line (src/editor.rs:148) — Delete the current line.replace_selection (src/editor.rs:173) — Replace the selected text with new text.undo (src/editor.rs:195) — Undo the last edit.redo (src/editor.rs:206) — Redo the next edit.EditorMode (src/editor.rs:221) — The trait that all editor modes implement.holo_phext::index::{LatticeIndex, ScrollSpan} (src/index.rs:14) — A re-export: holo_phext::index::{LatticeIndex, ScrollSpan} is made reachable through this module, so other code can useJoin (src/joins.rs:23) — A data shape named Join.get (src/joins.rs:56) — The join an account already holds, if any.record (src/joins.rs:68) — Record a join, or return the one the account already holds — the first arrival is the join, and joining twice changes nolist (src/joins.rs:86) — Every recorded join, oldest first.coordinate_ext::{Dimension, CoordinateNav} (src/lib.rs:53) — A re-export: coordinate_ext::{Dimension, CoordinateNav} is made reachable through this module, so other code can use itcursor::{ScrollCursor, Position, Selection} (src/lib.rs:54) — A re-export: cursor::{ScrollCursor, Position, Selection} is made reachable through this module, so other code can use iteditor::{EditorMode, EditContext, EditKey, EditKeyCode, EditResult, CursorStyle} (src/lib.rs:55) — A re-export: editor::{EditorMode, EditContext, EditKey, EditKeyCode, EditResult, CursorStyle} is made reachable throughindex::{LatticeIndex, ScrollSpan} (src/lib.rs:56) — A re-export: index::{LatticeIndex, ScrollSpan} is made reachable through this module, so other code can use it from heremmap::MappedLattice (src/lib.rs:57) — A re-export: mmap::MappedLattice is made reachable through this module, so other code can use it from here.modes::VimMode (src/lib.rs:58) — A re-export: modes::VimMode is made reachable through this module, so other code can use it from here.names::{NameIndex, fold} (src/lib.rs:59) — A re-export: names::{NameIndex, fold} is made reachable through this module, so other code can use it from here.navigator::Navigator (src/lib.rs:60) — A re-export: navigator::Navigator is made reachable through this module, so other code can use it from here.search::{search_lattice, search_lattice_parallel, search_lattice_auto, search_coordinates, SearchHit} (src/lib.rs:61) — A re-export: search::{search_lattice, search_lattice_parallel, search_lattice_auto, search_coordinates, SearchHit} is masidecar::{IndexedLattice, IndexSpec, OpenMode, SyncReport, sidecar_dir} (src/lib.rs:62) — A re-export: sidecar::{IndexedLattice, IndexSpec, OpenMode, SyncReport, sidecar_dir} is made reachable through this modusentron::{Sentron, Neuron, Axon, AxisGroup, SENTRON_CAPACITY} (src/lib.rs:63) — A re-export: sentron::{Sentron, Neuron, Axon, AxisGroup, SENTRON_CAPACITY} is made reachable through this module, so othstats::{ScrollStats, DimensionDensity, LatticeOverview, Neighborhood} (src/lib.rs:64) — A re-export: stats::{ScrollStats, DimensionDensity, LatticeOverview, Neighborhood} is made reachable through this moduleterm_index::{TermIndex, TermHit, Bm25Params, tokenize} (src/lib.rs:65) — A re-export: term_index::{TermIndex, TermHit, Bm25Params, tokenize} is made reachable through this module, so other codeundo::{UndoEngine, EditOp, UndoRecord} (src/lib.rs:66) — A re-export: undo::{UndoEngine, EditOp, UndoRecord} is made reachable through this module, so other code can use it fromtts::{CoordPronunciation, byte_to_syllable, dim_to_syllables, to_ssml, generate_pronunciation_doc, special_coords} (src/lib.rs:67) — A re-export: tts::{CoordPronunciation, byte_to_syllable, dim_to_syllables, to_ssml, generate_pronunciation_doc, special_uml6d::{Phase, ArtifactAddr, UmlContext, trace_artifact, artifacts_in_phase} (src/lib.rs:68) — A re-export: uml6d::{Phase, ArtifactAddr, UmlContext, trace_artifact, artifacts_in_phase} is made reachable through thismedia_payload_coord (src/media.rs:32) — Where slot slot's image payload (a binary scroll) lives: 9.9.9/9.9.9/1.1.n.media_metadata_coord (src/media.rs:38) — Where slot slot's metadata scroll (JSON text) lives: 9.9.9/9.9.9/1.2.n.media_slot_of (src/media.rs:44) — The media slot a coordinate belongs to, if it is a media payload coordinate (9.9.9/9.9.9/1.1.n).is_well_formed_binary_scroll (src/media.rs:68) — True when stored is a well-formed binary scroll: it carries the canonical header and its body is strict base64 (an empty payload — header plus newline, nothing after — is well-formed).ImageKind (src/media.rs:74) — A raster image format the editor accepts, identified by magic bytes.PNG (src/media.rs:81) — A fixed value named PNG, set to ImageKind { content_type: "image/png", extension: "png" }.JPEG (src/media.rs:82) — A fixed value named JPEG, set to ImageKind { content_type: "image/jpeg", extension: "jpg" }.GIF (src/media.rs:83) — A fixed value named GIF, set to ImageKind { content_type: "image/gif", extension: "gif" }.WEBP (src/media.rs:84) — A fixed value named WEBP, set to ImageKind { content_type: "image/webp", extension: "webp" }.AVIF (src/media.rs:85) — A fixed value named AVIF, set to ImageKind { content_type: "image/avif", extension: "avif" }.sniff_image (src/media.rs:91) — Identify an image payload by its magic bytes — never by a file name or a client-claimed type.MappedLattice (src/mmap.rs:144) — A phext document with copy-on-write editing.MappedLattice::open (src/mmap.rs:186) — Open a phext file and build the lattice index.open_with_index (src/mmap.rs:233) — Open a phext file with an index built elsewhere (e.g.from_bytes (src/mmap.rs:267) — Create a MappedLattice from raw bytes (for testing or in-memory use).read_scroll (src/mmap.rs:316) — Read the content of a scroll at the given coordinate.read_scroll_bytes (src/mmap.rs:342) — The scroll's exact stored bytes: the overlay version if edited, otherwise the mmap span, uninterpreted.fetch_binary (src/mmap.rs:367) — The payload a fetch of this scroll returns, mirroring libphext::binary::fetch_binary exactly: a well-formed binary scroll decodes to its payload; any other scroll (plain text, malformed binary, unoccupied) yields its own stored bytes verbatim — empty when the coordinate holds no scroll.is_chain (src/mmap.rs:381) — True when this file is a chain: more structure than a plain phext's single unclosed member.universe_count (src/mmap.rs:387) — How many universes (member phexts) this file holds.universe (src/mmap.rs:392) — The active universe, numbered from 1.member_stats (src/mmap.rs:397) — Per-universe (scroll count, content bytes), in universe order.set_universe (src/mmap.rs:408) — Make universe (numbered from 1) the active universe.read_scroll_bytes_in (src/mmap.rs:434) — A scroll's exact stored bytes in universe (numbered from 1), without switching the active universe.read_scroll_in (src/mmap.rs:445) — A scroll's content in universe (numbered from 1), without switching the active universe.write_scroll (src/mmap.rs:461) — Write content to a scroll at the given coordinate.write_scroll_raw (src/mmap.rs:476) — Store a scroll's stored form verbatim, with no binary guard.write_binary (src/mmap.rs:496) — Store payload at coord as a canonical binary scroll (header + base64 of the exact bytes), whatever the payload holdswrite_bytes (src/mmap.rs:505) — Store payload at coord under the format's ingestion rule (libphext's stored_form, behind insert_bytes/replace_bytes): valid UTF-8 is stored as ordinary text; anything else becomes a binary scroll holding the exact bytes.delete_scroll (src/mmap.rs:513) — Delete a scroll at the given coordinate.has_scroll (src/mmap.rs:529) — Check if a coordinate has content (considering overlay).populated_coordinates (src/mmap.rs:543) — Get all populated coordinates, including overlay insertions, excluding overlay deletions.scroll_count (src/mmap.rs:568) — Number of populated scrolls (considering overlay).is_dirty (src/mmap.rs:573) — Check if there are unsaved modifications.pending_changes (src/mmap.rs:583) — Number of modified/inserted/deleted scrolls.pending_coordinates (src/mmap.rs:591) — Coordinates with unsaved edits (modified, inserted, or deleted), sorted.save (src/mmap.rs:610) — Save to the backing file.save_as (src/mmap.rs:657) — Save to a specific path.to_phext_bytes (src/mmap.rs:707) — Reconstruct the full phext as bytes from mmap + overlay.raw_buffer (src/mmap.rs:791) — Access the raw mmap buffer for search operations.index (src/mmap.rs:813) — Access the underlying index for navigation queries.path (src/mmap.rs:818) — Get the file path.revert (src/mmap.rs:823) — Discard all unsaved changes, reverting to the mmap state.vim::VimMode (src/modes/mod.rs:8) — A re-export: vim::VimMode is made reachable through this module, so other code can use it from here.VimMode (src/modes/vim.rs:20) — Vim-style editor mode with Normal/Insert/Visual/Command sub-modes.VimMode::new (src/modes/vim.rs:33) — Function VimMode::new takes no inputs beyond the value it is called on, and gives back VimMode.fold (src/names.rs:17) — Case-fold a name for lookup: Unicode lowercase with runs of whitespace collapsed to one space and the ends trimmed.NameIndex (src/names.rs:69) — Exact and folded name → coordinate maps.NameIndex::new (src/names.rs:77) — Function NameIndex::new takes no inputs beyond the value it is called on, and gives back NameIndex.from_scrolls (src/names.rs:84) — Build from the lattice: every non-empty line of each scroll that select maps to Some(target) becomes a name for target.insert (src/names.rs:116) — Register name for coord.get (src/names.rs:134) — Exact (case-sensitive) lookup.get_folded (src/names.rs:139) — Case-insensitive lookup through the folded map.resolve (src/names.rs:144) — Exact match first, then folded: what an agent's "open <name>" should call.len (src/names.rs:149) — Distinct exact names.is_empty (src/names.rs:153) — Function is_empty takes no inputs beyond the value it is called on, and gives back bool.ambiguous (src/names.rs:159) — How many inserts hit a folded key already owned by a different coordinate.Navigator (src/navigator.rs:13) — The navigator state for one cursor in the lattice.Navigator::new (src/navigator.rs:27) — Function Navigator::new takes no inputs beyond the value it is called on, and gives back Navigator.at (src/navigator.rs:38) — Create a navigator starting at a specific coordinate.position (src/navigator.rs:49) — Current position in the lattice.active_dimension (src/navigator.rs:54) — Currently selected dimension.select_dimension (src/navigator.rs:59) — Select a dimension by index (1-9).move_forward (src/navigator.rs:69) — Move forward in the active dimension (resets lower dims).move_backward (src/navigator.rs:78) — Move backward in the active dimension (resets lower dims).goto (src/navigator.rs:87) — Jump directly to a coordinate.next_populated (src/navigator.rs:93) — Jump to the next populated coordinate (any dimension).prev_populated (src/navigator.rs:104) — Jump to the previous populated coordinate (any dimension).set_mark (src/navigator.rs:115) — Set a mark at the current position.jump_to_mark (src/navigator.rs:120) — Jump to the most recent mark (and remove it).history_back (src/navigator.rs:131) — Navigate back in history.history_forward (src/navigator.rs:142) — Navigate forward in history.dimension_neighbors (src/navigator.rs:154) — Get neighbors in the active dimension: (prev_value, current_value, next_value).NeighborhoodSummary (src/navigator.rs:179) — Summary of the lattice neighborhood around a coordinate, for rendering the coordinate bar and lattice navigator panel.Navigator::summarize (src/navigator.rs:198) — Build a summary of the current neighborhood for UI rendering.TEST_CSRF (src/oauth.rs:53) — A fixed value named TEST_CSRF, set to "csrf-test-token".Identity (src/oauth.rs:60) — A data shape named Identity.IdentitySource (src/oauth.rs:67) — A trait named IdentitySource: a set of methods that a type can promise to give.Oauth (src/oauth.rs:171) — A data shape named Oauth.Session (src/oauth.rs:218) — A data shape named Session.SsoAssertionBody (src/oauth.rs:269) — The SSO assertion: a sealed, single-use statement that an edit session exists, carried to an audience's callback in a redirect and verified there under the SSO secret.Oauth::from_env (src/oauth.rs:292) — Function Oauth::from_env takes no inputs beyond the value it is called on, and gives back Self.test_ready (src/oauth.rs:312) — Function test_ready takes no inputs beyond the value it is called on, and gives back Self.closed (src/oauth.rs:332) — Function closed takes no inputs beyond the value it is called on, and gives back Self.ready (src/oauth.rs:400) — Function ready takes no inputs beyond the value it is called on, and gives back bool.sso_ready (src/oauth.rs:410) — True when the Mutable SSO handoff is configured: a real SSO secret and a valid Mutable target.sso_ready_for (src/oauth.rs:419) — True when the SSO handoff is configured for one audience: the shared SSO secret is real and that audience has a target.sso_desktop_ready (src/oauth.rs:427) — True when the desktop audience is armed: a real SSO secret and the operator's explicit PHEXT_SSO_DESKTOP=1.base (src/oauth.rs:431) — Function base takes no inputs beyond the value it is called on, and gives back &str.sso_target (src/oauth.rs:435) — Function sso_target takes no inputs beyond the value it is called on, and gives back &str.sso_target_for (src/oauth.rs:450) — The callback origin for an audience, or None when the audience is not allowlisted or is allowlisted but unconfigured.providers (src/oauth.rs:463) — Function providers takes no inputs beyond the value it is called on, and gives back Vec<&'static str>.cookie_secure (src/oauth.rs:480) — Function cookie_secure takes no inputs beyond the value it is called on, and gives back bool.authorize_url (src/oauth.rs:485) — Returns the provider URL to redirect to and the sealed pending cookie.finish (src/oauth.rs:535) — Completes the flow.issue_session (src/oauth.rs:576) — Seal a fresh session for an identity that has already been established — by the provider exchange in finish, or by a verified desktop SSO assertion at the exchange endpoint.read_session (src/oauth.rs:595) — Function read_session takes &self, cookie_header: &str and gives back Option<Session>.csrf_matches (src/oauth.rs:621) — Function csrf_matches takes &self, session: &Session, header: &str and gives back bool.mcp_oauth_hash (src/oauth.rs:634) — A domain-separated, keyed digest for the MCP OAuth 2.1 store.test_session_cookie (src/oauth.rs:651) — Function test_session_cookie takes no inputs beyond the value it is called on, and gives back String.sso_assertion (src/oauth.rs:701) — Mint the assertion an audience's callback verifies: who this session is, whether it is an editor, and the return path on the audience's site — sealed under the shared SSO secret, alive for SSO_TTL seconds, with a fresh jti the audience burns on first sight.sso_assertion_desktop (src/oauth.rs:740) — Mint the desktop audience's assertion.open_sso_assertion (src/oauth.rs:778) — Open an SSO assertion under the SSO secret — the exchange endpoint is the one place this server ever takes an assertion back, and only the desktop audience's.Editors (src/oauth.rs:843) — Accounts allowed to use the editor once signed in.Editors::from_env (src/oauth.rs:876) — Function Editors::from_env takes no inputs beyond the value it is called on, and gives back Self.parse (src/oauth.rs:880) — Function parse takes raw: &str and gives back Self.len (src/oauth.rs:887) — Function len takes no inputs beyond the value it is called on, and gives back usize.is_empty (src/oauth.rs:891) — Function is_empty takes no inputs beyond the value it is called on, and gives back bool.matches (src/oauth.rs:895) — Function matches takes &self, who: &str, email: &str and gives back bool.allows (src/oauth.rs:904) — An empty list admits every signed-in account.load_file (src/oauth.rs:912) — Point the list at its backing file and load any entries already in it (one per line; blank lines and # comments are ignored, and a line may still carry several comma-separated entries).admit (src/oauth.rs:940) — Admit an account: add its account id (when valid) and its email (when usable), unless each is already covered, and append the new entries to the backing file when one is configured.Limiter (src/oauth.rs:977) — In-memory cap on sign-in attempts per client address, per ten minutes.Limiter::standard (src/oauth.rs:983) — Function Limiter::standard takes no inputs beyond the value it is called on, and gives back Self.with_cap (src/oauth.rs:987) — Function with_cap takes cap: usize and gives back Self.hit (src/oauth.rs:991) — Function hit takes &self, key: &str and gives back Result<(), ()>.Reply (src/oauth.rs:1006) — A complete HTTP response for the hand-rolled servers to write out.Reply::json (src/oauth.rs:1015) — Function Reply::json takes status: u16, value: serde_json::Value and gives back Self.write_to (src/oauth.rs:1058) — Serialize as an HTTP/1.1 response with Connection: close.HSTS_VALUE (src/oauth.rs:1080) — One year.CONTENT_SECURITY_POLICY (src/oauth.rs:1092) — Policy for the embedded editor and the public pages.forwarded_https (src/oauth.rs:1106) — Function forwarded_https takes headers: &HashMap<String, String> and gives back bool.security_header_block_csp (src/oauth.rs:1114) — Function security_header_block_csp takes https: bool, csp_override: Option<&str> and gives back String.security_header_block (src/oauth.rs:1132) — Function security_header_block takes https: bool and gives back String.status_text (src/oauth.rs:1136) — Function status_text takes status: u16 and gives back &'static str.Gate (src/oauth.rs:1191) — Access control for the editor servers: an OAuth session, or open when sign-in is not configured.Gate::new (src/oauth.rs:1209) — Function Gate::new takes oauth: Oauth, editors: Editors and gives back Self.from_env (src/oauth.rs:1235) — Function from_env takes no inputs beyond the value it is called on, and gives back Self.enable_local (src/oauth.rs:1256) — Admit every direct request as a local developer.is_local (src/oauth.rs:1260) — Function is_local takes no inputs beyond the value it is called on, and gives back bool.enable_claims (src/oauth.rs:1267) — Open claim mode: /api/claim accepts claims (the lookup stays public either way).claims_open (src/oauth.rs:1271) — Function claims_open takes no inputs beyond the value it is called on, and gives back bool.locked (src/oauth.rs:1276) — True when some credential is required for the API.oauth (src/oauth.rs:1280) — Function oauth takes no inputs beyond the value it is called on, and gives back &Oauth.editors (src/oauth.rs:1284) — Function editors takes no inputs beyond the value it is called on, and gives back &Editors.session (src/oauth.rs:1291) — The signed-in session for a request, if any.is_editor (src/oauth.rs:1308) — Whether a session belongs to an approved editor.admit_account (src/oauth.rs:1315) — Admit an account as an editor, effective immediately and persisted to the editors file when one is configured.load_editors_file (src/oauth.rs:1323) — Load additional editor entries from a file (one per line) and make it the backing file for future admissions.describe (src/oauth.rs:1328) — Startup lines describing how the API is protected.route (src/oauth.rs:1352) — Handles /api/session and /api/auth/*.admit (src/oauth.rs:1396) — Decides whether a non-auth request may proceed.sso (src/oauth.rs:1545) — GET /api/auth/sso/<aud> — the cross-site handoff to one allowlisted audience (mutable, exocortexia, wishnode).cookie_header (src/oauth.rs:1743) — Function cookie_header takes name: &str, value: &str, max_age: i64, secure: bool and gives back String.safe_next (src/oauth.rs:1850) — Keeps the post-sign-in redirect on this site: a path, optionally with a #coordinate fragment.loopback_return (src/oauth.rs:1888) — Admit a desktop return URL: the address of the listener the app opened for this one sign-in attempt.valid_state_nonce (src/oauth.rs:1930) — The desktop attempt's state nonce: long enough to be unguessable, plain enough to travel in URLs and assertions unchanged.valid_who (src/oauth.rs:1937) — Function valid_who takes who: &str and gives back bool.display_name (src/oauth.rs:1955) — Function display_name takes raw: &str, fallback: &str and gives back String.clean_email (src/oauth.rs:1970) — Function clean_email takes raw: &str and gives back String.clean_handle (src/oauth.rs:1991) — Function clean_handle takes raw: &str and gives back String.clean_twitter_handle (src/oauth.rs:2004) — An X username verbatim: [A-Za-z0-9_]{1,15}, case preserved.token_eq (src/oauth.rs:2016) — Constant-time comparison; an empty expected value never matches.is_loopback_bind (src/oauth.rs:2285) — True when host is a loopback listen address: 127.0.0.0/8, ::1, or localhost.SearchHit (src/search.rs:19) — A search hit: coordinate + context around the match.search_lattice (src/search.rs:132) — Search the lattice for a text pattern (single-threaded).search_lattice_parallel (src/search.rs:177) — Search the lattice for a text pattern across all available cores.search_lattice_auto (src/search.rs:261) — Auto-selecting search: picks serial or parallel based on data characteristics.search_coordinates (src/search.rs:274) — Search for coordinates matching a coordinate pattern string.build_index_parallel (src/search.rs:292) — Parallel index build — partition the buffer into chunks, scan each for delimiter boundaries, then merge.AxisGroup (src/sentron.rs:36) — The two fundamental axis groups in the sentron topology.AxisGroup::name (src/sentron.rs:44) — Function AxisGroup::name takes no inputs beyond the value it is called on, and gives back &'static str.dimensions (src/sentron.rs:52) — The 4 dimensions in this axis group.Axon (src/sentron.rs:72) — One connection axis: a dimension with backward/forward reach.Axon::total (src/sentron.rs:87) — Total reachable coordinates along this axis.weight (src/sentron.rs:92) — Visual weight: how "thick" this connection is (0.0 to 1.0).Neuron (src/sentron.rs:100) — A neuron in the sentron: a populated coordinate with its 8 axons.Sentron (src/sentron.rs:110) — The sentron: 40 nearest populated coordinates to the cursor, with full 8-way connectivity analysis.SENTRON_CAPACITY (src/sentron.rs:126) — The maximum number of neurons in a sentron.CONNECTIONS_PER_NEURON (src/sentron.rs:129) — The number of connections per neuron.Sentron::build (src/sentron.rs:136) — Build a sentron centered on a coordinate.size (src/sentron.rs:175) — How many neurons are in this sentron.structural_axons (src/sentron.rs:180) — The structural (spatial) axons: Library, Shelf, Series, Collection.sequential_axons (src/sentron.rs:185) — The sequential (temporal) axons: Volume, Book, Chapter, Section.topology_string (src/sentron.rs:191) — Render the sentron as a compact topology string.is_break (src/sidecar.rs:83) — Whether b is a phext dimension break.Selector (src/sidecar.rs:89) — Maps a source scroll to the coordinate an index entry should point at, or None to leave the scroll out of that index.IndexSpec (src/sidecar.rs:94) — Which scrolls feed which index.IndexSpec::new (src/sidecar.rs:103) — Function IndexSpec::new takes label: &str, names: Selector, terms: Selector and gives back IndexSpec.scrolls (src/sidecar.rs:108) — Every scroll is its own term document; no names.OpenMode (src/sidecar.rs:115) — How IndexedLattice::open got its indexes.SyncReport (src/sidecar.rs:127) — What a save() or sync did.sidecar_dir (src/sidecar.rs:137) — The sidecar directory for a phext path: wiki.phext → wiki.phext.idx.IndexedLattice (src/sidecar.rs:733) — A MappedLattice whose span, name, and term indexes persist in a sidecar.IndexedLattice::open (src/sidecar.rs:746) — Open path with indexes from its sidecar: load them if they match the source, patch them if the source changed, or builrebuild (src/sidecar.rs:793) — Discard the sidecar and index every scroll again.lattice (src/sidecar.rs:800) — Function lattice takes no inputs beyond the value it is called on, and gives back &MappedLattice.lattice_mut (src/sidecar.rs:805) — Edit through the lattice, then save() to persist and re-sync the indexes.sidecar (src/sidecar.rs:810) — The sidecar directory.delta_len (src/sidecar.rs:815) — Scrolls changed since the base (entries in the delta).set_compact_threshold (src/sidecar.rs:821) — Fold the delta into the base once it holds more than n scrolls.save (src/sidecar.rs:827) — Save pending edits to the source, then record exactly the edited scrolls in the delta (or compact, past the threshold).compact (src/sidecar.rs:837) — Fold the delta into a new base now.name (src/sidecar.rs:845) — Exact name lookup (first owner in document order wins).resolve (src/sidecar.rs:851) — Exact lookup, then case-folded.search (src/sidecar.rs:882) — BM25-ranked documents for a free-text query (terms OR'ed), best first.doc_count (src/sidecar.rs:929) — Live term documents.ENV_NAME (src/sponsor.rs:10) — Environment variable deploy.sh writes into the phext-edit service environment.SLOT (src/sponsor.rs:13) — Placeholder in the public HTML.SponsorOffer (src/sponsor.rs:19) — A configured donation URL, or nothing.SponsorOffer::hidden (src/sponsor.rs:24) — Function SponsorOffer::hidden takes no inputs beyond the value it is called on, and gives back Self.from_env (src/sponsor.rs:31) — Read [ENV_NAME].parse (src/sponsor.rs:49) — Accept a Stripe Payment Link (or any https URL safe to place in an href).url (src/sponsor.rs:56) — Function url takes no inputs beyond the value it is called on, and gives back Option<&str>.markup (src/sponsor.rs:61) — The visible control, or an empty string when the link is hidden.apply_slot (src/sponsor.rs:76) — Replace every [SLOT] in html.ScrollStats (src/stats.rs:13) — Per-scroll statistics for the status bar and info panel.ScrollStats::from_bytes (src/stats.rs:22) — Compute stats from raw scroll bytes.size_display (src/stats.rs:33) — Human-readable size.DimensionDensity (src/stats.rs:47) — Density profile for one dimension: how many populated scrolls exist at each value along that dimension.DimensionDensity::build (src/stats.rs:59) — Build the density profile for one dimension across all populated coordinates.sparkline (src/stats.rs:77) — Render a sparkline string showing relative density.distinct_values (src/stats.rs:120) — How many distinct values exist in this dimension.range (src/stats.rs:125) — The range of populated values.Neighborhood (src/stats.rs:139) — Neighborhood context: what's near the current coordinate.Neighborhood::build (src/stats.rs:152) — Build neighborhood context for a coordinate.LatticeOverview (src/stats.rs:195) — Global lattice overview stats.LatticeOverview::build (src/stats.rs:206) — Build a complete overview of the lattice.SubmissionStatus (src/submissions.rs:20) — A named choice named SubmissionStatus.Submission (src/submissions.rs:27) — A data shape named Submission.sanitize_filename (src/submissions.rs:65) — Reduce an offered file name to a bare, safe *.phext name, or None when nothing usable remains.count_scrolls (src/submissions.rs:86) — Count the populated scrolls in a phext text.create (src/submissions.rs:116) — Store a new pending submission.list (src/submissions.rs:159) — Every submission in the directory, oldest first.get (src/submissions.rs:181) — One submission by id, or None.content (src/submissions.rs:194) — The uploaded phext bytes for a submission.set_decision (src/submissions.rs:203) — Record an accept or decline.Bm25Params (src/term_index.rs:22) — BM25 tuning.TermHit (src/term_index.rs:37) — A ranked hit: the document coordinate and its BM25 score.TermIndex (src/term_index.rs:50) — Inverted index over lattice documents with BM25 ranking.tokenize (src/term_index.rs:67) — Split text into index terms: lowercased runs of letters/digits, at least 2 chars.TermIndex::new (src/term_index.rs:91) — An empty index.build (src/term_index.rs:106) — Index every populated scroll as its own document (overlay edits included).build_grouped (src/term_index.rs:113) — Index scrolls grouped into documents: group maps a scroll coordinate to the coordinate of the document it belongs to, or None to leave it out.upsert (src/term_index.rs:177) — Add or replace the document at coord with text.remove (src/term_index.rs:184) — Remove the document at coord.search (src/term_index.rs:200) — Rank documents against a free-text query (terms are OR'ed).doc_count (src/term_index.rs:240) — Number of live documents.term_count (src/term_index.rs:245) — Number of distinct terms.retired (src/term_index.rs:250) — Documents replaced or removed since the last build.document_frequency (src/term_index.rs:255) — How many documents (including retired ones) contain term.heap_bytes (src/term_index.rs:260) — Approximate heap footprint in bytes.MAX_Q_BYTES (src/traversals.rs:23) — The largest q string a record may carry (64 KiB).Traversal (src/traversals.rs:26) — A data shape named Traversal.valid_name (src/traversals.rs:66) — A name is usable when, trimmed, it holds 1..=120 chars.count_steps (src/traversals.rs:107) — How many steps of a q string parse under the tour grammar.valid_q (src/traversals.rs:113) — A q string is storable when it is non-empty, within the storage bound, and at least one of its steps parses.create (src/traversals.rs:126) — Store a new traversal for who.list (src/traversals.rs:152) — Every traversal in the directory, oldest first.get (src/traversals.rs:174) — One traversal by id, or None.update (src/traversals.rs:188) — Replace a record's name and q (ownership is the caller's check, as in submissions::set_decision).remove (src/traversals.rs:200) — Delete a record.ZERO_SOUND (src/tts.rs:14) — Zero = "om" — the nada sound, silence between wordsbyte_to_syllable (src/tts.rs:47) — Convert a single byte value (0-255) to a syllabledim_to_syllables (src/tts.rs:62) — Convert a coordinate dimension value (e.g., 1, 5, 9) to a syllable sequenceSubCoord (src/tts.rs:82) — A 3D subcoordinate (e.g., 1.1.1)SubCoord::new (src/tts.rs:89) — Function SubCoord::new takes a: u32, b: u32, c: u32 and gives back Self.pronounce (src/tts.rs:94) — Pronounce as "a b c" syllablespronounce_verbose (src/tts.rs:103) — Pronounce with element namesCoordPronunciation (src/tts.rs:113) — Full 9D coordinate pronunciationCoordPronunciation::from_coordinate (src/tts.rs:121) — Create from a libphext Coordinateparse (src/tts.rs:142) — Parse from string "1.1.1/1.1.1/1.1.1"pronounce (src/tts.rs:167) — Full pronunciation with om boundariespronounce_compact (src/tts.rs:176) — Compact pronunciation (no om boundaries)pronounce_verbose (src/tts.rs:185) — Verbose with dimension labelsipa_hint (src/tts.rs:195) — Get IPA-style phonetic hintto_ssml (src/tts.rs:205) — Generate SSML for TTS engines (Google, Amazon Polly, etc.)generate_pronunciation_doc (src/tts.rs:225) — Generate a batch pronunciation documentspecial_coords (src/tts.rs:257) — Special coordinates with meaningPhase (src/uml6d.rs:27) — The 10 SDLC phases mapped to collection values.Phase::from_collection (src/uml6d.rs:41) — Function Phase::from_collection takes c: usize and gives back Option<Phase>.name (src/uml6d.rs:57) — Function name takes no inputs beyond the value it is called on, and gives back &'static str.short (src/uml6d.rs:72) — Function short takes no inputs beyond the value it is called on, and gives back &'static str.color (src/uml6d.rs:88) — CSS color for this phase.all (src/uml6d.rs:104) — All phases in order.ArtifactAddr (src/uml6d.rs:116) — A 5D artifact address — stable across SDLC phases.ArtifactAddr::from_coordinate (src/uml6d.rs:126) — Extract the 5D artifact address from a full coordinate.to_coordinate (src/uml6d.rs:138) — Build a full coordinate by combining this address with an SDLC phase and outer dimensions (defaulting outer to 1.1.1).to_coordinate_with_outer (src/uml6d.rs:143) — Build a full coordinate with explicit outer dimensions.display (src/uml6d.rs:166) — Display as volume.book.chapter/section.scrollUmlContext (src/uml6d.rs:179) — Full 6D UML context for a coordinate.UmlContext::from_coordinate (src/uml6d.rs:187) — Function UmlContext::from_coordinate takes c: &Coordinate and gives back Self.trace_artifact (src/uml6d.rs:202) — Trace an artifact across all SDLC phases.artifacts_in_phase (src/uml6d.rs:217) — Find all populated 5D addresses within a given phase.DNode (src/uml6d_diagram.rs:54) — A node in a 6D UML diagram: one artifact, drawn in one phase lane.DEdge (src/uml6d_diagram.rs:64) — A typed relation between two artifacts.Diagram (src/uml6d_diagram.rs:73) — A 6D UML diagram: nodes + edges under one projection phase.ParseError (src/uml6d_diagram.rs:85) — A data shape named ParseError.parse_addr (src/uml6d_diagram.rs:134) — Parse a 5D artifact address in display form: volume.book.chapter/section.scrollparse_diagram (src/uml6d_diagram.rs:224) — Parse the diagram notation.to_notation (src/uml6d_diagram.rs:384) — Emit the canonical notation for this diagram.project (src/uml6d_diagram.rs:427) — Project the diagram into another phase: node lanes are re-read in the new phase, but every artifact address is unchanged.to_text (src/uml6d_diagram.rs:446) — Plain-text rendering: lanes grouped in phase order, edges listed.to_svg (src/uml6d_diagram.rs:491) — SVG rendering.EditOp (src/undo.rs:33) — An edit operation that can be undone/redone.EditOp::apply (src/undo.rs:54) — Apply this operation to text, returning the new text.inverse (src/undo.rs:85) — Compute the inverse operation (for undo).to_scroll (src/undo.rs:104) — Serialize to the phext scroll format.from_scroll (src/undo.rs:130) — Deserialize from a phext scroll.UndoRecord (src/undo.rs:180) — An undo record: operation + cursor state.UndoEngine (src/undo.rs:258) — The undo engine: manages edit history across all scrolls.UndoEngine::new (src/undo.rs:266) — Function UndoEngine::new takes no inputs beyond the value it is called on, and gives back UndoEngine.record (src/undo.rs:274) — Record an edit operation.undo (src/undo.rs:295) — Undo the last edit on a scroll.redo (src/undo.rs:302) — Redo the next edit on a scroll.can_undo (src/undo.rs:309) — Can we undo on this scroll?can_redo (src/undo.rs:314) — Can we redo on this scroll?depth (src/undo.rs:319) — Undo depth for a scroll.total_edits (src/undo.rs:324) — Total edits recorded globally.dirty_scrolls (src/undo.rs:329) — Which scrolls have been modified.to_work_phext (src/undo.rs:343) — Serialize the full undo history to a phext byte vector.from_work_phext (src/undo.rs:377) — Load undo history from a work phext.Region (src/wavefront.rs:23) — A named choice named Region.Region::label (src/wavefront.rs:31) — Display label, exactly as the phext's index words it.Placement (src/wavefront.rs:50) — A data shape named Placement.Person (src/wavefront.rs:59) — A data shape named Person.normalize_handle (src/wavefront.rs:118) — Reduce a user-typed handle to its lookup key: trimmed, one leading @ dropped, lowercased, underscores kept.lookup (src/wavefront.rs:130) — The map's entry for a handle, however the visitor typed it.snapshot_handles (src/wavefront.rs:136) — How many distinct accounts the snapshot holds.snapshot_placements (src/wavefront.rs:141) — Total placements across all accounts (trails count twice).Found in bench/wiki/extract_zim.py at line 27.
Signature: def __init__(self):
What it does: Function __init__ takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/extract_zim.py at line 31.
Signature: def handle_starttag(self, tag, attrs):
What it does: Function handle_starttag takes self, tag, attrs and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/extract_zim.py at line 41.
Signature: def handle_endtag(self, tag):
What it does: Function handle_endtag takes self, tag and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/extract_zim.py at line 47.
Signature: def handle_data(self, data):
What it does: Function handle_data takes self, data and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/extract_zim.py at line 51.
Signature: def text(self):
What it does: Function text takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/extract_zim.py at line 58.
Signature: def main(zim_path, out_dir):
What it does: Function main takes zim_path, out_dir and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/make_queries.py at line 22.
Signature: def main(d, n=500):
What it does: Function main takes d, n=500 and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/report.py at line 6.
Signature: def load(work, s, name):
What it does: Function load takes work, s, name and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/report.py at line 11.
Signature: def lat(v, key="p50_us"):
What it does: Function lat takes v, key="p50_us" and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/report.py at line 18.
Signature: def mb(b):
What it does: Function mb takes b and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/report.py at line 22.
Signature: def table(head, rows):
What it does: Function table takes head, rows and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/report.py at line 28.
Signature: def main(work, *scales):
What it does: Function main takes work, *scales and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/storage.py at line 16.
Signature: def tree(p):
What it does: Function tree takes p and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/storage.py at line 25.
Signature: def one(p):
What it does: Function one takes p and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/storage.py at line 30.
Signature: def main(out):
What it does: Function main takes out and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 20.
Signature: def load_corpus(d, scale):
What it does: Function load_corpus takes d, scale and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 39.
Signature: def __init__(self, title, text):
What it does: Function __init__ takes self, title, text and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 42.
Signature: def has_indexdata(self): return True
What it does: Function has_indexdata takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 43.
Signature: def get_title(self): return self.t
What it does: Function get_title takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 44.
Signature: def get_content(self): return self.x
What it does: Function get_content takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 45.
Signature: def get_keywords(self): return ""
What it does: Function get_keywords takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 46.
Signature: def get_wordcount(self): return len(self.x.split())
What it does: Function get_wordcount takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 50.
Signature: def __init__(self, path, title, text, front, index):
What it does: Function __init__ takes self, path, title, text, front, index and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 53.
Signature: def get_path(self): return self.p
What it does: Function get_path takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 54.
Signature: def get_title(self): return self.t
What it does: Function get_title takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 55.
Signature: def get_mimetype(self): return "text/plain"
What it does: Function get_mimetype takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 56.
Signature: def get_contentprovider(self): return StringProvider(self.x)
What it does: Function get_contentprovider takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 57.
Signature: def get_hints(self): return
What it does: Function get_hints takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 58.
Signature: def get_indexdata(self): return Doc(self.t, self.x) if self.i else None
What it does: Function get_indexdata takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 61.
Signature: def build_zim(arts, path, fulltext=True):
What it does: Function build_zim takes arts, path, fulltext=True and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 83.
Signature: def stats(ds):
What it does: Function stats takes ds and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 90.
Signature: def time_each(items, f):
What it does: Function time_each takes items, f and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 97.
Signature: def drop_caches():
What it does: Function drop_caches takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 106.
Signature: def __init__(self, s): self.s = s
What it does: Function __init__ takes self, s and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 107.
Signature: def below(self, n):
What it does: Function below takes self, n and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 113.
Signature: def fname(t):
What it does: Function fname takes t and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 118.
Signature: def main(corpus, out, scale=1, original=None):
What it does: Function main takes corpus, out, scale=1, original=None and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 152.
Signature: def bfs(seed):
What it does: Function bfs takes seed and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 166.
Signature: def backlinks(t):
What it does: Function backlinks takes t and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 176.
Signature: def exact(x):
What it does: Function exact takes x and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 185.
Signature: def suggest(x):
What it does: Function suggest takes x and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 195.
Signature: def fulltext_top1(x):
What it does: Function fulltext_top1 takes x and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in bench/wiki/zim_bench.py at line 204.
Signature: def ft(x):
What it does: Function ft takes x and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in build.rs at line 50.
Signature: fn main() {
What it does: The entry point: the program starts here. It reads the command line and runs the command the user named.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 59.
Signature: die()
What it does: Function die takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 64.
Signature: usage()
What it does: Function usage takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 85.
Signature: random_hex()
What it does: Function random_hex takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 90.
Signature: install_secret()
What it does: Function install_secret takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 101.
Signature: as_owner()
What it does: Function as_owner takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 108.
Signature: sponsor_url_ok()
What it does: Function sponsor_url_ok takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 134.
Signature: validate_sponsor_url()
What it does: Function validate_sponsor_url takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 141.
Signature: resolve_sponsor_url()
What it does: Function resolve_sponsor_url takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 150.
Signature: write_sponsor_env()
What it does: Function write_sponsor_env takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 183.
Signature: apply_sponsor_env()
What it does: Function apply_sponsor_env takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 208.
Signature: dns_points_here()
What it does: Function dns_points_here takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 212.
Signature: file_sha256()
What it does: Function file_sha256 takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 218.
Signature: read_root_file()
What it does: Function read_root_file takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 223.
Signature: nginx_template()
What it does: Function nginx_template takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 240.
Signature: render_site_body()
What it does: Function render_site_body takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 252.
Signature: adopt_live_ssl()
What it does: Function adopt_live_ssl takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 288.
Signature: path_exists()
What it does: Function path_exists takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 296.
Signature: drop_missing_dhparam()
What it does: Function drop_missing_dhparam takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 309.
Signature: stamp_managed()
What it does: Function stamp_managed takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 318.
Signature: write_bootstrap_body()
What it does: Function write_bootstrap_body takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 349.
Signature: nginx_disposition()
What it does: Function nginx_disposition takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 383.
Signature: with_force()
What it does: Function with_force takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 392.
Signature: require_hardened_body()
What it does: Function require_hardened_body takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 409.
Signature: install_rendered_site()
What it does: Function install_rendered_site takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 443.
Signature: apply_rendered_site()
What it does: Function apply_rendered_site takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 492.
Signature: run_check()
What it does: Function run_check takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in deploy/deploy.sh at line 611.
Signature: main()
What it does: Function main takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in examples/wikibench.rs at line 831.
Signature: fn main() {
What it does: The entry point: the program starts here. It reads the command line and runs the command the user named.
(Where these words came from: signature.)
Found in scripts/build_wavefront_explorer.py at line 30.
Signature: def fmt(coord):
What it does: Function fmt takes coord and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/build_wavefront_explorer.py at line 36.
Signature: def parse_phext(data):
What it does: Function parse_phext takes data and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/build_wavefront_explorer.py at line 56.
Signature: def region_of(values):
What it does: Function region_of takes values and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/build_wavefront_explorer.py at line 65.
Signature: def summarize(evidence):
What it does: Function summarize takes evidence and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/build_wavefront_explorer.py at line 73.
Signature: def entries_of(scroll_text):
What it does: Yield (heading, body) per entry in a person scroll. Shared scrolls
(Where these words came from: doc comment.)
Found in scripts/build_wavefront_explorer.py at line 91.
Signature: def handle_of(heading):
What it does: Function handle_of takes heading and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/build_wavefront_explorer.py at line 100.
Signature: def main():
What it does: Function main takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/build_wavefront_snapshot.py at line 42.
Signature: def fmt(coord):
What it does: Function fmt takes coord and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/build_wavefront_snapshot.py at line 48.
Signature: def parse_phext(data):
What it does: Dead-reckoning parse: walk bytes, split on delimiters, map to coords.
(Where these words came from: doc comment.)
Found in scripts/build_wavefront_snapshot.py at line 69.
Signature: def handle_of(name_part):
What it does: Function handle_of takes name_part and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/build_wavefront_snapshot.py at line 78.
Signature: def main():
What it does: Function main takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 45.
Signature: def check(ok, label, detail=""):
What it does: Function check takes ok, label, detail="" and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 50.
Signature: def skip(label, why):
What it does: Function skip takes label, why and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 55.
Signature: def req(method, path, body=None, headers=None, budget_ms=None, label=None):
What it does: Function req takes method, path, body=None, headers=None, budget_ms=None, label=None and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 73.
Signature: def b64url(data: bytes) -> str:
What it does: Function b64url takes data: bytes and gives back str:.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 77.
Signature: def pkce():
What it does: Function pkce takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 82.
Signature: def consent_fields(page: str):
What it does: Function consent_fields takes page: str and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 92.
Signature: def authorize_and_consent(params, label):
What it does: GET authorize (expect the consent page), POST approve, return the
(Where these words came from: doc comment.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 111.
Signature: def token_exchange(form, label, extra_headers=None):
What it does: Function token_exchange takes form, label, extra_headers=None and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 119.
Signature: def rpc(token, method, params=None, req_id=1, headers_extra=None, path="/mcp", label=None, budget_ms=None):
What it does: Function rpc takes token, method, params=None, req_id=1, headers_extra=None, path="/mcp", label=None, budget_ms=None and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 134.
Signature: def tool(token, name, args, label=None, budget_ms=None):
What it does: Function tool takes token, name, args, label=None, budget_ms=None and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 141.
Signature: def flow_code_and_token(*, label, client_id, redirect_uri, state, verifier,
What it does: Function flow_code_and_token takes *, label, client_id, redirect_uri, state, verifier, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 170.
Signature: def pkce_pair(verifier):
What it does: Function pkce_pair takes verifier and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/mcp_e2e.py at line 384.
Signature: def assertion(jti):
What it does: Function assertion takes jti and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/run.sh at line 15.
Signature: cleanup()
What it does: Function cleanup takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/sdk_flow.py at line 31.
Signature: def stamp(msg):
What it does: Function stamp takes msg and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in scripts/mcp-e2e/sdk_flow.py at line 36.
Signature: def __init__(self):
What it does: Function __init__ takes no inputs beyond the value it is called on, and gives back nothing; it does its work on what it is given.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 7879.
Signature: fn main() {
What it does: The entry point: the program starts here. It reads the command line and runs the command the user named.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 941.
Signature: command "dim"
What it does: A command named dim. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 946.
Signature: command "forward"
What it does: A command named forward. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 947.
Signature: command "backward"
What it does: A command named backward. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 948.
Signature: command "next"
What it does: A command named next. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 949.
Signature: command "prev"
What it does: A command named prev. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 950.
Signature: command "goto"
What it does: A command named goto. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 955.
Signature: command "home"
What it does: A command named home. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 962.
Signature: command "base"
What it does: A command named base. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 1158.
Signature: command "full"
What it does: A command named full. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 1159.
Signature: command "summary"
What it does: A command named summary. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 1164.
Signature: command "children"
What it does: A command named children. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 1189.
Signature: command "scrolls"
What it does: A command named scrolls. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 1197.
Signature: command "matches"
What it does: A command named matches. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 1545.
Signature: command "no-store"
What it does: A command named no-store. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 2333.
Signature: command "saved"
What it does: A command named saved. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 2479.
Signature: command "write_scroll"
What it does: A command named write_scroll. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 2480.
Signature: command "list_phexts"
What it does: A command named list_phexts. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 2486.
Signature: command "initialize"
What it does: A command named initialize. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 2680.
Signature: command "ping"
What it does: A command named ping. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 2686.
Signature: command "jsonrpc"
What it does: A command named jsonrpc. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 3417.
Signature: command "https"
What it does: A command named https. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 3418.
Signature: command "http"
What it does: A command named http. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 3573.
Signature: command "authorization_code"
What it does: A command named authorization_code. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 3592.
Signature: command "code"
What it does: A command named code. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 3672.
Signature: command "private_key_jwt"
What it does: A command named private_key_jwt. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 4628.
Signature: command "none"
What it does: A command named none. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 4640.
Signature: command "client_secret_basic"
What it does: A command named client_secret_basic. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 4649.
Signature: command "client_secret_post"
What it does: A command named client_secret_post. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 4850.
Signature: command "refresh_token"
What it does: A command named refresh_token. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 4937.
Signature: command "replay"
What it does: A command named replay. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 5305.
Signature: command "phext_toc"
What it does: A command named phext_toc. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 5331.
Signature: command "read_scroll"
What it does: A command named read_scroll. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 5347.
Signature: command "search_scrolls"
What it does: A command named search_scrolls. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 5420.
Signature: command "claims"
What it does: A command named claims. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 5433.
Signature: command "joins"
What it does: A command named joins. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 5610.
Signature: command "ok"
What it does: A command named ok. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 5833.
Signature: command "submissions"
What it does: A command named submissions. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 5984.
Signature: command "traversals"
What it does: A command named traversals. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6482.
Signature: flag --token
What it does: A command line flag, --token. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6486.
Signature: flag --port
What it does: A command line flag, --port. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6486.
Signature: flag --host
What it does: A command line flag, --host. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6486.
Signature: flag --dir
What it does: A command line flag, --dir. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6486.
Signature: flag --home
What it does: A command line flag, --home. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6486.
Signature: flag --home-coord
What it does: A command line flag, --home-coord. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6495.
Signature: flag --local
What it does: A command line flag, --local. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6495.
Signature: flag --help
What it does: A command line flag, --help. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6536.
Signature: command "phext"
What it does: A command named phext. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6544.
Signature: command "xml"
What it does: A command named xml. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 6795.
Signature: flag --local opens the editor
What it does: A command line flag, --local opens the editor. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8227.
Signature: command "found"
What it does: A command named found. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8228.
Signature: command "bought"
What it does: A command named bought. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8229.
Signature: command "patron"
What it does: A command named patron. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8230.
Signature: command "new"
What it does: A command named new. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8466.
Signature: command "lookup-form"
What it does: A command named lookup-form. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8494.
Signature: command "logout"
What it does: A command named logout. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8522.
Signature: command "claim-button"
What it does: A command named claim-button. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8642.
Signature: command "pending"
What it does: A command named pending. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 8668.
Signature: command "upload-form"
What it does: A command named upload-form. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 10631.
Signature: command "coord-link"
What it does: A command named coord-link. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 12275.
Signature: flag --font-text: 'Emise'
What it does: A command line flag, --font-text: 'Emise'. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 13328.
Signature: flag --dim: #808080
What it does: A command line flag, --dim: #808080. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 13329.
Signature: flag --dim: #9a9a9a
What it does: A command line flag, --dim: #9a9a9a. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_edit.rs at line 13330.
Signature: flag --field-border: #767676
What it does: A command line flag, --field-border: #767676. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/phext_nav.rs at line 179.
Signature: fn main() -> io::Result<()> {
What it does: The entry point: the program starts here. It reads the command line and runs the command the user named.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 17.
Signature: fn main() {
What it does: The entry point: the program starts here. It reads the command line and runs the command the user named.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 26.
Signature: command "coord"
What it does: A command named coord. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 33.
Signature: command "ssml"
What it does: A command named ssml. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 41.
Signature: command "special"
What it does: A command named special. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 48.
Signature: command "table"
What it does: A command named table. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 61.
Signature: command "batch"
What it does: A command named batch. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 68.
Signature: command "extract"
What it does: A command named extract. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 75.
Signature: command "help"
What it does: A command named help. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/phext_tts.rs at line 75.
Signature: flag --help
What it does: A command line flag, --help. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/uml6d_edit.rs at line 653.
Signature: fn main() {
What it does: The entry point: the program starts here. It reads the command line and runs the command the user named.
(Where these words came from: signature.)
Found in src/bin/uml6d_edit.rs at line 586.
Signature: command "saved"
What it does: A command named saved. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/bin/uml6d_edit.rs at line 672.
Signature: flag --port
What it does: A command line flag, --port. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/uml6d_edit.rs at line 673.
Signature: flag --host
What it does: A command line flag, --host. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/uml6d_edit.rs at line 674.
Signature: flag --dir
What it does: A command line flag, --dir. It is read by the program when the user passes it.
(Where these words came from: signature.)
Found in src/bin/uml6d_edit.rs at line 1429.
Signature: command "coord-link"
What it does: A command named coord-link. The program runs it when the user types this word on the command line.
(Where these words came from: signature.)
Found in src/claims.rs at line 36.
Signature: pub enum Tier {
What it does: A named choice named Tier. It is one of: Found; Bought; Patron; New.
(Where these words came from: signature.)
Found in src/claims.rs at line 44.
Signature: pub fn grant(self) -> Grant {
What it does: Function Tier::grant takes no inputs beyond the value it is called on, and gives back Grant.
(Where these words came from: signature.)
Found in src/claims.rs at line 70.
Signature: pub struct Grant {
What it does: A data shape named Grant. Its fields are: pub storage_bytes: usize; pub max_phexts: usize; pub max_phext_bytes: usize; pub max_delegates: usize.
(Where these words came from: signature.)
Found in src/claims.rs at line 78.
Signature: pub struct Claim {
What it does: A data shape named Claim. Its fields are: pub who: String; pub handle: String; pub tier: Tier; pub placements: Vec<String>; pub claimed_at: i64.
(Where these words came from: signature.)
Found in src/claims.rs at line 115.
Signature: pub fn get(dir: &Path, who: &str) -> Option<Claim> {
What it does: The claim an account already holds, if any.
(Where these words came from: doc comment.)
Found in src/claims.rs at line 128.
Signature: pub fn record( dir: &Path, who: &str, handle: &str, tier: Tier, placements: &[String], ) -> Result<Claim, String> {
What it does: Record a claim, or return the one the account already holds — claiming twice changes nothing (a later buy-in updates the tier through set_tier, never by re-claiming).
(Where these words came from: doc comment.)
Found in src/claims.rs at line 153.
Signature: pub fn list(dir: &Path) -> Vec<Claim> {
What it does: Every recorded claim, oldest first. Unreadable files are skipped.
(Where these words came from: doc comment.)
Found in src/claims.rs at line 173.
Signature: pub fn set_tier(dir: &Path, who: &str, tier: Tier, placements: &[String]) -> Result<Claim, String> {
What it does: Move an existing claim to a new tier (a buy-in landing, or a map republication finding the account). Returns the updated claim.
(Where these words came from: doc comment.)
Found in src/coordinate_ext.rs at line 34.
Signature: pub enum Dimension {
What it does: -------------------------------------------------------------------------------------------------------- Dimension enum for editor navigation. Maps 1-9 keys to the nine phext dimensions (scroll=innermost, library=outermost). NOTE: this index counts from the scroll outward — it is a key/wire index, NOT the canonical dimension number. Canonical numbering follows the written address (Library.Shelf.Series / Collection.Volume.Book / Chapter.Section.Scroll): Library is dimension 1, Scroll is dimension 9 (Will's ruling, 2026-11-10). Teaching surfaces state the canonical number; this enum's values remain the key/wire convention, and renumbering them is a behavioral change, not a display change. --------------------------------------------------------------------------------------------------------
(Where these words came from: doc comment.)
Found in src/coordinate_ext.rs at line 67.
Signature: pub fn from_index(i: u8) -> Option<Dimension> {
What it does: Convert 1-9 key index to dimension. Returns None for out of range.
(Where these words came from: doc comment.)
Found in src/coordinate_ext.rs at line 82.
Signature: pub fn name(&self) -> &'static str {
What it does: Function name takes no inputs beyond the value it is called on, and gives back &'static str.
(Where these words came from: signature.)
Found in src/coordinate_ext.rs at line 97.
Signature: pub fn delimiter(&self) -> u8 {
What it does: The delimiter byte for this dimension.
(Where these words came from: doc comment.)
Found in src/coordinate_ext.rs at line 123.
Signature: pub trait CoordinateNav {
What it does: -------------------------------------------------------------------------------------------------------- [UPSTREAM] Navigation trait: move forward/backward in a specific dimension. The existing break methods (scroll_break, section_break, etc.) advance AND reset lower dimensions. That's correct for parsing delimiters, but an editor also needs "move to the next book without resetting chapter/section/scroll" for lattice navigation, AND "move backward" which libphext doesn't support at all. navigate moves in a dimension, resetting lower dims (like the delimiter does). peek moves in a dimension WITHOUT resetting lower dims (for UI preview). --------------------------------------------------------------------------------------------------------
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 12.
Signature: pub struct Position {
What it does: Position within a scroll's text.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 20.
Signature: pub fn new(line: usize, col: usize) -> Position {
What it does: Function Position::new takes line: usize, col: usize and gives back Position.
(Where these words came from: signature.)
Found in src/cursor.rs at line 24.
Signature: pub fn origin() -> Position {
What it does: Function origin takes no inputs beyond the value it is called on, and gives back Position.
(Where these words came from: signature.)
Found in src/cursor.rs at line 29.
Signature: pub fn from_offset(text: &str, offset: usize) -> Position {
What it does: Convert a byte offset in text to a Position.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 46.
Signature: pub fn to_offset(&self, text: &str) -> usize {
What it does: Convert this Position to a byte offset in text.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 76.
Signature: pub struct Selection {
What it does: A selection range within a scroll.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 85.
Signature: pub fn cursor(pos: Position) -> Selection {
What it does: A zero-width selection (cursor) at a position.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 90.
Signature: pub fn is_cursor(&self) -> bool {
What it does: Whether this is a zero-width selection (just a cursor).
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 95.
Signature: pub fn start(&self) -> Position {
What it does: The start of the selection (earlier position).
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 106.
Signature: pub fn end(&self) -> Position {
What it does: The end of the selection (later position).
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 119.
Signature: pub struct ScrollCursor {
What it does: The cursor state within a scroll.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 131.
Signature: pub fn new() -> ScrollCursor {
What it does: New cursor at the origin (0,0).
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 140.
Signature: pub fn at(pos: Position) -> ScrollCursor {
What it does: New cursor at a specific position.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 149.
Signature: pub fn position(&self) -> Position {
What it does: Current cursor position (selection head).
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 154.
Signature: pub fn move_to(&mut self, pos: Position) {
What it does: Move cursor to a position, collapsing any selection.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 160.
Signature: pub fn select_to(&mut self, pos: Position) {
What it does: Extend selection to a position (keep anchor, move head).
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 166.
Signature: pub fn move_left(&mut self, text: &str, n: usize) {
What it does: Move cursor left by n characters within text.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 173.
Signature: pub fn move_right(&mut self, text: &str, n: usize) {
What it does: Move cursor right by n characters within text.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 180.
Signature: pub fn move_up(&mut self, text: &str, n: usize) {
What it does: Move cursor up by n lines, preserving column.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 194.
Signature: pub fn move_down(&mut self, text: &str, n: usize) {
What it does: Move cursor down by n lines, preserving column.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 209.
Signature: pub fn move_home(&mut self) {
What it does: Move to beginning of current line.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 214.
Signature: pub fn move_end(&mut self, text: &str) {
What it does: Move to end of current line.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 220.
Signature: pub fn move_top(&mut self) {
What it does: Move to start of text.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 225.
Signature: pub fn move_bottom(&mut self, text: &str) {
What it does: Move to end of text.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 232.
Signature: pub fn move_word_forward(&mut self, text: &str) {
What it does: Move to the next word boundary.
(Where these words came from: doc comment.)
Found in src/cursor.rs at line 247.
Signature: pub fn move_word_backward(&mut self, text: &str) {
What it does: Move to the previous word boundary.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 16.
Signature: pub enum EditResult {
What it does: What happened after processing a key.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 31.
Signature: pub enum CursorStyle {
What it does: Cursor rendering style.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 42.
Signature: pub struct EditKey {
What it does: A key event abstraction (decoupled from any TUI/GUI framework).
(Where these words came from: doc comment.)
Found in src/editor.rs at line 50.
Signature: pub enum EditKeyCode {
What it does: A named choice named EditKeyCode. It is one of: Char; Enter; Backspace; Delete; Escape; Left; Right; Up; Down; Home; End; PageUp; PageDown; Tab.
(Where these words came from: signature.)
Found in src/editor.rs at line 68.
Signature: pub fn char(c: char) -> EditKey {
What it does: Function EditKey::char takes c: char and gives back EditKey.
(Where these words came from: signature.)
Found in src/editor.rs at line 72.
Signature: pub fn ctrl(c: char) -> EditKey {
What it does: Function ctrl takes c: char and gives back EditKey.
(Where these words came from: signature.)
Found in src/editor.rs at line 76.
Signature: pub fn special(code: EditKeyCode) -> EditKey {
What it does: Function special takes code: EditKeyCode and gives back EditKey.
(Where these words came from: signature.)
Found in src/editor.rs at line 83.
Signature: pub struct EditContext<'a> {
What it does: The editing context passed to modes. Provides access to text content, cursor, and edit operations.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 95.
Signature: pub fn new( coordinate: Coordinate, text: &'a mut String, cursor: &'a mut ScrollCursor, undo: &'a mut UndoEngine, ) -> EditContext<'a> {
What it does: Function <'a> EditContext<'a>::new takes coordinate: Coordinate, text: &'a mut String, cursor: &'a mut ScrollCursor, undo: &'a mut UndoEngine, and gives back EditContext<'a>.
(Where these words came from: signature.)
Found in src/editor.rs at line 105.
Signature: pub fn insert(&mut self, s: &str) {
What it does: Insert text at the cursor position.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 116.
Signature: pub fn insert_newline(&mut self) {
What it does: Insert a newline at the cursor position.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 121.
Signature: pub fn delete_backward(&mut self, n: usize) {
What it does: Delete n characters before the cursor (backspace).
(Where these words came from: doc comment.)
Found in src/editor.rs at line 135.
Signature: pub fn delete_forward(&mut self, n: usize) {
What it does: Delete n characters at the cursor position (delete key).
(Where these words came from: doc comment.)
Found in src/editor.rs at line 148.
Signature: pub fn delete_line(&mut self) {
What it does: Delete the current line.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 173.
Signature: pub fn replace_selection(&mut self, new_text: &str) {
What it does: Replace the selected text with new text.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 195.
Signature: pub fn undo(&mut self) -> bool {
What it does: Undo the last edit.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 206.
Signature: pub fn redo(&mut self) -> bool {
What it does: Redo the next edit.
(Where these words came from: doc comment.)
Found in src/editor.rs at line 221.
Signature: pub trait EditorMode: std::fmt::Debug {
What it does: The trait that all editor modes implement. A mode handles keystrokes and manipulates the editing context. It can return a different mode to transition to (e.g., Normal → Insert).
(Where these words came from: doc comment.)
Found in src/index.rs at line 14.
Signature: pub use holo_phext::index::{LatticeIndex, ScrollSpan};
What it does: A re-export: holo_phext::index::{LatticeIndex, ScrollSpan} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/joins.rs at line 23.
Signature: pub struct Join {
What it does: A data shape named Join. Its fields are: pub who: String; pub handle: String; pub via: String; pub joined_at: i64.
(Where these words came from: signature.)
Found in src/joins.rs at line 56.
Signature: pub fn get(dir: &Path, who: &str) -> Option<Join> {
What it does: The join an account already holds, if any.
(Where these words came from: doc comment.)
Found in src/joins.rs at line 68.
Signature: pub fn record(dir: &Path, who: &str, handle: &str, via: &str) -> Result<Join, String> {
What it does: Record a join, or return the one the account already holds — the first arrival is the join, and joining twice changes nothing.
(Where these words came from: doc comment.)
Found in src/joins.rs at line 86.
Signature: pub fn list(dir: &Path) -> Vec<Join> {
What it does: Every recorded join, oldest first. Unreadable files are skipped.
(Where these words came from: doc comment.)
Found in src/lib.rs at line 53.
Signature: pub use coordinate_ext::{Dimension, CoordinateNav};
What it does: A re-export: coordinate_ext::{Dimension, CoordinateNav} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 54.
Signature: pub use cursor::{ScrollCursor, Position, Selection};
What it does: A re-export: cursor::{ScrollCursor, Position, Selection} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 55.
Signature: pub use editor::{EditorMode, EditContext, EditKey, EditKeyCode, EditResult, CursorStyle};
What it does: A re-export: editor::{EditorMode, EditContext, EditKey, EditKeyCode, EditResult, CursorStyle} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 56.
Signature: pub use index::{LatticeIndex, ScrollSpan};
What it does: A re-export: index::{LatticeIndex, ScrollSpan} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 57.
Signature: pub use mmap::MappedLattice;
What it does: A re-export: mmap::MappedLattice is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 58.
Signature: pub use modes::VimMode;
What it does: A re-export: modes::VimMode is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 59.
Signature: pub use names::{NameIndex, fold};
What it does: A re-export: names::{NameIndex, fold} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 60.
Signature: pub use navigator::Navigator;
What it does: A re-export: navigator::Navigator is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 61.
Signature: pub use search::{search_lattice, search_lattice_parallel, search_lattice_auto, search_coordinates, SearchHit};
What it does: A re-export: search::{search_lattice, search_lattice_parallel, search_lattice_auto, search_coordinates, SearchHit} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 62.
Signature: pub use sidecar::{IndexedLattice, IndexSpec, OpenMode, SyncReport, sidecar_dir};
What it does: A re-export: sidecar::{IndexedLattice, IndexSpec, OpenMode, SyncReport, sidecar_dir} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 63.
Signature: pub use sentron::{Sentron, Neuron, Axon, AxisGroup, SENTRON_CAPACITY};
What it does: A re-export: sentron::{Sentron, Neuron, Axon, AxisGroup, SENTRON_CAPACITY} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 64.
Signature: pub use stats::{ScrollStats, DimensionDensity, LatticeOverview, Neighborhood};
What it does: A re-export: stats::{ScrollStats, DimensionDensity, LatticeOverview, Neighborhood} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 65.
Signature: pub use term_index::{TermIndex, TermHit, Bm25Params, tokenize};
What it does: A re-export: term_index::{TermIndex, TermHit, Bm25Params, tokenize} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 66.
Signature: pub use undo::{UndoEngine, EditOp, UndoRecord};
What it does: A re-export: undo::{UndoEngine, EditOp, UndoRecord} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 67.
Signature: pub use tts::{CoordPronunciation, byte_to_syllable, dim_to_syllables, to_ssml, generate_pronunciation_doc, special_coords};
What it does: A re-export: tts::{CoordPronunciation, byte_to_syllable, dim_to_syllables, to_ssml, generate_pronunciation_doc, special_coords} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/lib.rs at line 68.
Signature: pub use uml6d::{Phase, ArtifactAddr, UmlContext, trace_artifact, artifacts_in_phase};
What it does: A re-export: uml6d::{Phase, ArtifactAddr, UmlContext, trace_artifact, artifacts_in_phase} is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/media.rs at line 32.
Signature: pub fn media_payload_coord(slot: usize) -> Coordinate {
What it does: Where slot slot's image payload (a binary scroll) lives: 9.9.9/9.9.9/1.1.n.
(Where these words came from: doc comment.)
Found in src/media.rs at line 38.
Signature: pub fn media_metadata_coord(slot: usize) -> Coordinate {
What it does: Where slot slot's metadata scroll (JSON text) lives: 9.9.9/9.9.9/1.2.n.
(Where these words came from: doc comment.)
Found in src/media.rs at line 44.
Signature: pub fn media_slot_of(coord: &Coordinate) -> Option<usize> {
What it does: The media slot a coordinate belongs to, if it is a media payload coordinate (9.9.9/9.9.9/1.1.n).
(Where these words came from: doc comment.)
Found in src/media.rs at line 68.
Signature: pub fn is_well_formed_binary_scroll(stored: &str) -> bool {
What it does: True when stored is a well-formed binary scroll: it carries the canonical header and its body is strict base64 (an empty payload — header plus newline, nothing after — is well-formed). A header-prefixed scroll whose body is not strict base64 is malformed: by the format's fetch rule it is text, fetched verbatim, and the text write path may still edit it. Only well-formed binary scrolls are protected from text writes.
(Where these words came from: doc comment.)
Found in src/media.rs at line 74.
Signature: pub struct ImageKind {
What it does: A raster image format the editor accepts, identified by magic bytes.
(Where these words came from: doc comment.)
Found in src/media.rs at line 81.
Signature: pub const PNG: ImageKind = ImageKind { content_type: "image/png", extension: "png" };
What it does: A fixed value named PNG, set to ImageKind { content_type: "image/png", extension: "png" }.
(Where these words came from: signature.)
Found in src/media.rs at line 82.
Signature: pub const JPEG: ImageKind = ImageKind { content_type: "image/jpeg", extension: "jpg" };
What it does: A fixed value named JPEG, set to ImageKind { content_type: "image/jpeg", extension: "jpg" }.
(Where these words came from: signature.)
Found in src/media.rs at line 83.
Signature: pub const GIF: ImageKind = ImageKind { content_type: "image/gif", extension: "gif" };
What it does: A fixed value named GIF, set to ImageKind { content_type: "image/gif", extension: "gif" }.
(Where these words came from: signature.)
Found in src/media.rs at line 84.
Signature: pub const WEBP: ImageKind = ImageKind { content_type: "image/webp", extension: "webp" };
What it does: A fixed value named WEBP, set to ImageKind { content_type: "image/webp", extension: "webp" }.
(Where these words came from: signature.)
Found in src/media.rs at line 85.
Signature: pub const AVIF: ImageKind = ImageKind { content_type: "image/avif", extension: "avif" };
What it does: A fixed value named AVIF, set to ImageKind { content_type: "image/avif", extension: "avif" }.
(Where these words came from: signature.)
Found in src/media.rs at line 91.
Signature: pub fn sniff_image(bytes: &[u8]) -> Option<ImageKind> {
What it does: Identify an image payload by its magic bytes — never by a file name or a client-claimed type. SVG is deliberately absent: it is a scriptable document format, not a raster, and is never accepted or served by the image path, so there is no stored-XSS surface to make inert.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 144.
Signature: pub struct MappedLattice {
What it does: A phext document with copy-on-write editing. The document may be a chain (a multiverse): several member phexts — universes — in one file. All read/write methods operate on the active universe (see universe / set_universe); a plain phext is a chain of one universe and behaves exactly as it always has.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 186.
Signature: pub fn open<P: AsRef<Path>>(path: P) -> io::Result<MappedLattice> {
What it does: Open a phext file and build the lattice index.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 233.
Signature: pub fn open_with_index<P: AsRef<Path>>(path: P, index: LatticeIndex) -> io::Result<MappedLattice> {
What it does: Open a phext file with an index built elsewhere (e.g. loaded from a sidecar), skipping the O(n) scan. Fails if the index was built for a buffer of a different length. A chain-class file ignores the supplied index — a persisted span table describes one universe, not a chain — and is opened with a fresh scan instead.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 267.
Signature: pub fn from_bytes(bytes: &[u8]) -> MappedLattice {
What it does: Create a MappedLattice from raw bytes (for testing or in-memory use). The bytes are written under std::env::temp_dir() (never a hard-coded /tmp) and mapped from that same file handle. The temp directory is created if it is missing.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 316.
Signature: pub fn read_scroll(&self, coord: &Coordinate) -> Option<String> {
What it does: Read the content of a scroll at the given coordinate. Returns the overlay version if edited, otherwise reads from mmap.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 342.
Signature: pub fn read_scroll_bytes(&self, coord: &Coordinate) -> Option<Vec<u8>> {
What it does: The scroll's exact stored bytes: the overlay version if edited, otherwise the mmap span, uninterpreted. This is the raw layer the binary-scroll support is built on — a binary scroll's stored form is text (header + base64), but payloads are recovered from these bytes without any lossy conversion.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 367.
Signature: pub fn fetch_binary(&self, coord: &Coordinate) -> Vec<u8> {
What it does: The payload a fetch of this scroll returns, mirroring libphext::binary::fetch_binary exactly: a well-formed binary scroll decodes to its payload; any other scroll (plain text, malformed binary, unoccupied) yields its own stored bytes verbatim — empty when the coordinate holds no scroll. Total: never fails, never panics.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 381.
Signature: pub fn is_chain(&self) -> bool {
What it does: True when this file is a chain: more structure than a plain phext's single unclosed member.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 387.
Signature: pub fn universe_count(&self) -> usize {
What it does: How many universes (member phexts) this file holds. A plain phext holds exactly one.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 392.
Signature: pub fn universe(&self) -> usize {
What it does: The active universe, numbered from 1.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 397.
Signature: pub fn member_stats(&self) -> Vec<(usize, usize)> {
What it does: Per-universe (scroll count, content bytes), in universe order.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 408.
Signature: pub fn set_universe(&mut self, universe: usize) -> io::Result<()> {
What it does: Make universe (numbered from 1) the active universe. Refused while the overlay holds unsaved edits — an edit never straddles a switch — and when the universe is out of range.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 434.
Signature: pub fn read_scroll_bytes_in(&self, universe: usize, coord: &Coordinate) -> Option<Vec<u8>> {
What it does: A scroll's exact stored bytes in universe (numbered from 1), without switching the active universe. The overlay applies only when universe is the active one.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 445.
Signature: pub fn read_scroll_in(&self, universe: usize, coord: &Coordinate) -> Option<String> {
What it does: A scroll's content in universe (numbered from 1), without switching the active universe.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 461.
Signature: pub fn write_scroll(&mut self, coord: Coordinate, content: String) -> bool {
What it does: Write content to a scroll at the given coordinate. If the coordinate already exists (in mmap or overlay), it's modified. If it's new, it's inserted. Binary-scroll guard: a well-formed binary scroll (an image, say) cannot be replaced through the text path — its stored form is a header plus base64, and a text edit would corrupt the payload silently. Returns false when the write is refused for that reason; the scroll is left exactly as it was. Writing the identical stored form back is a no-op success. Byte payloads go through write_binary / write_bytes instead.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 476.
Signature: pub fn write_scroll_raw(&mut self, coord: Coordinate, content: String) {
What it does: Store a scroll's stored form verbatim, with no binary guard. This is the byte path: callers pass either canonical binary scrolls (from libphext::binary::encode_scroll) or stored forms they have already validated. Prefer write_scroll for text and write_binary / write_bytes for payloads.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 496.
Signature: pub fn write_binary(&mut self, coord: Coordinate, payload: &[u8]) {
What it does: Store payload at coord as a canonical binary scroll (header + base64 of the exact bytes), whatever the payload holds.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 505.
Signature: pub fn write_bytes(&mut self, coord: Coordinate, payload: &[u8]) {
What it does: Store payload at coord under the format's ingestion rule (libphext's stored_form, behind insert_bytes/replace_bytes): valid UTF-8 is stored as ordinary text; anything else becomes a binary scroll holding the exact bytes. Ingestion never rejects a payload.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 513.
Signature: pub fn delete_scroll(&mut self, coord: Coordinate) {
What it does: Delete a scroll at the given coordinate.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 529.
Signature: pub fn has_scroll(&self, coord: &Coordinate) -> bool {
What it does: Check if a coordinate has content (considering overlay).
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 543.
Signature: pub fn populated_coordinates(&self) -> Vec<Coordinate> {
What it does: Get all populated coordinates, including overlay insertions, excluding overlay deletions. Returned in sorted order.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 568.
Signature: pub fn scroll_count(&self) -> usize {
What it does: Number of populated scrolls (considering overlay).
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 573.
Signature: pub fn is_dirty(&self) -> bool {
What it does: Check if there are unsaved modifications.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 583.
Signature: pub fn pending_changes(&self) -> usize {
What it does: Number of modified/inserted/deleted scrolls.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 591.
Signature: pub fn pending_coordinates(&self) -> Vec<Coordinate> {
What it does: Coordinates with unsaved edits (modified, inserted, or deleted), sorted.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 610.
Signature: pub fn save(&mut self) -> io::Result<()> {
What it does: Save to the backing file. Plain documents commit their staged transaction and checkpoint — the base file ends up holding exactly the merged document, as the original rewrite save did, and the staged batch was durable in the WAL on the way. Chain files stay read-only here, with the reason named.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 657.
Signature: pub fn save_as<P: AsRef<Path>>(&mut self, path: P) -> io::Result<()> {
What it does: Save to a specific path.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 707.
Signature: pub fn to_phext_bytes(&self) -> Vec<u8> {
What it does: Reconstruct the full phext as bytes from mmap + overlay.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 791.
Signature: pub fn raw_buffer(&self) -> Option<&[u8]> {
What it does: Access the raw mmap buffer for search operations. Returns None if overlay has modifications (use to_phext_bytes instead).
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 813.
Signature: pub fn index(&self) -> &LatticeIndex {
What it does: Access the underlying index for navigation queries.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 818.
Signature: pub fn path(&self) -> &Path {
What it does: Get the file path.
(Where these words came from: doc comment.)
Found in src/mmap.rs at line 823.
Signature: pub fn revert(&mut self) {
What it does: Discard all unsaved changes, reverting to the mmap state.
(Where these words came from: doc comment.)
Found in src/modes/mod.rs at line 8.
Signature: pub use vim::VimMode;
What it does: A re-export: vim::VimMode is made reachable through this module, so other code can use it from here.
(Where these words came from: signature.)
Found in src/modes/vim.rs at line 20.
Signature: pub struct VimMode {
What it does: Vim-style editor mode with Normal/Insert/Visual/Command sub-modes.
(Where these words came from: doc comment.)
Found in src/modes/vim.rs at line 33.
Signature: pub fn new() -> VimMode {
What it does: Function VimMode::new takes no inputs beyond the value it is called on, and gives back VimMode.
(Where these words came from: signature.)
Found in src/names.rs at line 17.
Signature: pub fn fold(name: &str) -> String {
What it does: Case-fold a name for lookup: Unicode lowercase with runs of whitespace collapsed to one space and the ends trimmed.
(Where these words came from: doc comment.)
Found in src/names.rs at line 69.
Signature: pub struct NameIndex {
What it does: Exact and folded name → coordinate maps. When two names collide, the first one inserted wins, so building in document order prefers earlier scrolls.
(Where these words came from: doc comment.)
Found in src/names.rs at line 77.
Signature: pub fn new() -> NameIndex {
What it does: Function NameIndex::new takes no inputs beyond the value it is called on, and gives back NameIndex.
(Where these words came from: signature.)
Found in src/names.rs at line 84.
Signature: pub fn from_scrolls<F>(lattice: &MappedLattice, select: F) -> NameIndex where F: Fn(&Coordinate) -> Option<Coordinate>, {
What it does: Build from the lattice: every non-empty line of each scroll that select maps to Some(target) becomes a name for target. Return the scroll's own coordinate to name it, or another one (e.g. a record's body) to point there.
(Where these words came from: doc comment.)
Found in src/names.rs at line 116.
Signature: pub fn insert(&mut self, name: &str, coord: Coordinate) -> bool {
What it does: Register name for coord. Blank names are ignored. Returns false if the exact name was already taken (the earlier coordinate is kept).
(Where these words came from: doc comment.)
Found in src/names.rs at line 134.
Signature: pub fn get(&self, name: &str) -> Option<Coordinate> {
What it does: Exact (case-sensitive) lookup.
(Where these words came from: doc comment.)
Found in src/names.rs at line 139.
Signature: pub fn get_folded(&self, name: &str) -> Option<Coordinate> {
What it does: Case-insensitive lookup through the folded map.
(Where these words came from: doc comment.)
Found in src/names.rs at line 144.
Signature: pub fn resolve(&self, name: &str) -> Option<Coordinate> {
What it does: Exact match first, then folded: what an agent's "open <name>" should call.
(Where these words came from: doc comment.)
Found in src/names.rs at line 149.
Signature: pub fn len(&self) -> usize {
What it does: Distinct exact names.
(Where these words came from: doc comment.)
Found in src/names.rs at line 153.
Signature: pub fn is_empty(&self) -> bool {
What it does: Function is_empty takes no inputs beyond the value it is called on, and gives back bool.
(Where these words came from: signature.)
Found in src/names.rs at line 159.
Signature: pub fn ambiguous(&self) -> usize {
What it does: How many inserts hit a folded key already owned by a different coordinate. Those names resolve exactly but fold to the first owner.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 13.
Signature: pub struct Navigator {
What it does: The navigator state for one cursor in the lattice.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 27.
Signature: pub fn new() -> Navigator {
What it does: Function Navigator::new takes no inputs beyond the value it is called on, and gives back Navigator.
(Where these words came from: signature.)
Found in src/navigator.rs at line 38.
Signature: pub fn at(coord: Coordinate) -> Navigator {
What it does: Create a navigator starting at a specific coordinate.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 49.
Signature: pub fn position(&self) -> Coordinate {
What it does: Current position in the lattice.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 54.
Signature: pub fn active_dimension(&self) -> Dimension {
What it does: Currently selected dimension.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 59.
Signature: pub fn select_dimension(&mut self, index: u8) -> bool {
What it does: Select a dimension by index (1-9).
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 69.
Signature: pub fn move_forward(&mut self) -> bool {
What it does: Move forward in the active dimension (resets lower dims).
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 78.
Signature: pub fn move_backward(&mut self) -> bool {
What it does: Move backward in the active dimension (resets lower dims).
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 87.
Signature: pub fn goto(&mut self, coord: Coordinate) {
What it does: Jump directly to a coordinate.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 93.
Signature: pub fn next_populated(&mut self, index: &LatticeIndex) -> bool {
What it does: Jump to the next populated coordinate (any dimension).
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 104.
Signature: pub fn prev_populated(&mut self, index: &LatticeIndex) -> bool {
What it does: Jump to the previous populated coordinate (any dimension).
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 115.
Signature: pub fn set_mark(&mut self) {
What it does: Set a mark at the current position.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 120.
Signature: pub fn jump_to_mark(&mut self) -> bool {
What it does: Jump to the most recent mark (and remove it).
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 131.
Signature: pub fn history_back(&mut self) -> bool {
What it does: Navigate back in history.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 142.
Signature: pub fn history_forward(&mut self) -> bool {
What it does: Navigate forward in history.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 154.
Signature: pub fn dimension_neighbors(&self) -> (Option<usize>, usize, Option<usize>) {
What it does: Get neighbors in the active dimension: (prev_value, current_value, next_value). Values are None if at the boundary.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 179.
Signature: pub struct NeighborhoodSummary {
What it does: Summary of the lattice neighborhood around a coordinate, for rendering the coordinate bar and lattice navigator panel.
(Where these words came from: doc comment.)
Found in src/navigator.rs at line 198.
Signature: pub fn summarize(&self, index: &LatticeIndex) -> NeighborhoodSummary {
What it does: Build a summary of the current neighborhood for UI rendering.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 53.
Signature: pub const TEST_CSRF: &str = "csrf-test-token";
What it does: A fixed value named TEST_CSRF, set to "csrf-test-token".
(Where these words came from: signature.)
Found in src/oauth.rs at line 60.
Signature: pub struct Identity {
What it does: A data shape named Identity. Its fields are: pub who: String; pub handle: String; pub name: String; pub email: String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 67.
Signature: pub trait IdentitySource: Send + Sync {
What it does: A trait named IdentitySource: a set of methods that a type can promise to give.
(Where these words came from: signature.)
Found in src/oauth.rs at line 171.
Signature: pub struct Oauth {
What it does: A data shape named Oauth. The scanner did not read its fields.
(Where these words came from: signature.)
Found in src/oauth.rs at line 218.
Signature: pub struct Session {
What it does: A data shape named Session. Its fields are: pub who: String; pub handle: String; pub name: String; pub email: String; pub csrf: String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 269.
Signature: pub struct SsoAssertionBody {
What it does: The SSO assertion: a sealed, single-use statement that an edit session exists, carried to an audience's callback in a redirect and verified there under the SSO secret. It is not a session — the audience mints its own from it, and this server never accepts one back. aud names the one audience it was minted for (mutable, exocortexia, wishnode); a consumer must reject any other value, including an assertion minted for a different audience. ret is a path on the audience's site, clamped by safe_next before sealing; jti is the single-use id the audience burns on first sight. The one exception to "never accepts one back" is the desktop audience (Phext Notepad): a shipped app cannot hold the SSO secret, so its assertions come back here to POST /api/auth/desktop/exchange, which verifies them under the secret and burns the jti server-side. For that audience ret is the app's validated loopback return URL (see loopback_return), and st carries the app's per-attempt state nonce, sealed at mint and demanded back at the exchange. Web audiences never carry st — the field is simply absent from their assertions.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 292.
Signature: pub fn from_env() -> Self {
What it does: Function Oauth::from_env takes no inputs beyond the value it is called on, and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 312.
Signature: pub fn test_ready() -> Self {
What it does: Function test_ready takes no inputs beyond the value it is called on, and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 332.
Signature: pub fn closed() -> Self {
What it does: Function closed takes no inputs beyond the value it is called on, and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 400.
Signature: pub fn ready(&self) -> bool {
What it does: Function ready takes no inputs beyond the value it is called on, and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 410.
Signature: pub fn sso_ready(&self) -> bool {
What it does: True when the Mutable SSO handoff is configured: a real SSO secret and a valid Mutable target. Independent of ready() — the handoff mints nothing of its own; it rides the session the providers already made, so it needs no provider keys here.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 419.
Signature: pub fn sso_ready_for(&self, aud: &str) -> bool {
What it does: True when the SSO handoff is configured for one audience: the shared SSO secret is real and that audience has a target. Every allowlisted audience rides the same secret and the same sealed assertion format; only the aud claim and the callback origin differ.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 427.
Signature: pub fn sso_desktop_ready(&self) -> bool {
What it does: True when the desktop audience is armed: a real SSO secret and the operator's explicit PHEXT_SSO_DESKTOP=1. There is no target to consult — the app's callback is a per-attempt loopback listener — so readiness is the secret plus the flag.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 431.
Signature: pub fn base(&self) -> &str {
What it does: Function base takes no inputs beyond the value it is called on, and gives back &str.
(Where these words came from: signature.)
Found in src/oauth.rs at line 435.
Signature: pub fn sso_target(&self) -> &str {
What it does: Function sso_target takes no inputs beyond the value it is called on, and gives back &str.
(Where these words came from: signature.)
Found in src/oauth.rs at line 450.
Signature: pub fn sso_target_for(&self, aud: &str) -> Option<&str> {
What it does: The callback origin for an audience, or None when the audience is not allowlisted or is allowlisted but unconfigured. Mutable always has a target (its production origin is the default); Exocortexia has one only once PHEXT_SSO_EXOCORTEXIA_URL is set, and Wishnode only once PHEXT_SSO_WISHNODE_URL is. This match is the audience allowlist — an audience that is not named here can never be minted for. The desktop audience is deliberately absent: it has no fixed origin (its callback is the app's per-attempt loopback listener), so it is armed and minted on its own path (sso_desktop_ready, sso_assertion_desktop).
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 463.
Signature: pub fn providers(&self) -> Vec<&'static str> {
What it does: Function providers takes no inputs beyond the value it is called on, and gives back Vec<&'static str>.
(Where these words came from: signature.)
Found in src/oauth.rs at line 480.
Signature: pub fn cookie_secure(&self) -> bool {
What it does: Function cookie_secure takes no inputs beyond the value it is called on, and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 485.
Signature: pub fn authorize_url(&self, provider_name: &str, next: &str) -> Result<(String, String), String> {
What it does: Returns the provider URL to redirect to and the sealed pending cookie.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 535.
Signature: pub fn finish( &self, provider_name: &str, code: &str, state: &str, pending_cookie: &str, ) -> Result<(Identity, String, String), String> {
What it does: Completes the flow. Returns the identity, the sealed session cookie, and the absolute URL to send the browser back to.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 576.
Signature: pub fn issue_session( &self, who: &str, handle: &str, name: &str, email: &str, ) -> Result<(String, String), String> {
What it does: Seal a fresh session for an identity that has already been established — by the provider exchange in finish, or by a verified desktop SSO assertion at the exchange endpoint. This is the one place session values are made: a fresh CSRF token and a SESSION_TTL seal under the session secret. Returns the sealed cookie value and the CSRF token inside it (the desktop exchange hands both to the app; the browser flow learns the CSRF from /api/session instead).
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 595.
Signature: pub fn read_session(&self, cookie_header: &str) -> Option<Session> {
What it does: Function read_session takes &self, cookie_header: &str and gives back Option<Session>.
(Where these words came from: signature.)
Found in src/oauth.rs at line 621.
Signature: pub fn csrf_matches(&self, session: &Session, header: &str) -> bool {
What it does: Function csrf_matches takes &self, session: &Session, header: &str and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 634.
Signature: pub fn mcp_oauth_hash(&self, domain: &str, value: &str) -> Option<String> {
What it does: A domain-separated, keyed digest for the MCP OAuth 2.1 store. Authorization codes, access tokens, refresh tokens, and client secrets are never stored in the clear. Each value is represented by HMAC-SHA256 under the existing session secret, with the caller's domain label mixed in before the value, so a digest minted for one kind of credential cannot be replayed as another. No separate OAuth secret is required: rotating the session secret intentionally invalidates the stored OAuth credentials along with sessions.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 651.
Signature: pub fn test_session_cookie() -> String {
What it does: Function test_session_cookie takes no inputs beyond the value it is called on, and gives back String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 701.
Signature: pub fn sso_assertion( &self, aud: &str, session: &Session, editor: bool, ret: &str, ) -> Result<String, String> {
What it does: Mint the assertion an audience's callback verifies: who this session is, whether it is an editor, and the return path on the audience's site — sealed under the shared SSO secret, alive for SSO_TTL seconds, with a fresh jti the audience burns on first sight. The format is identical for every audience; only the aud claim differs, and an audience outside the allowlist in sso_target_for can never be minted for. The return path is clamped by safe_next here, at the moment of sealing, so no unsigned return input ever crosses.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 740.
Signature: pub fn sso_assertion_desktop( &self, session: &Session, editor: bool, ret: &str, state: &str, ) -> Result<String, String> {
What it does: Mint the desktop audience's assertion. Same sealed format as every audience, with the two differences that audience exists for: ret is the app's loopback return URL, validated by loopback_return here at the moment of sealing (anything else is refused, so no unvalidated return ever crosses), and the app's per-attempt state nonce rides sealed as st, to be demanded back at the exchange — an assertion that arrives anywhere without its attempt's state is not that attempt's assertion. The caller (Gate::sso_desktop) has already validated the state's shape.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 778.
Signature: pub fn open_sso_assertion(&self, token: &str) -> Result<SsoAssertionBody, String> {
What it does: Open an SSO assertion under the SSO secret — the exchange endpoint is the one place this server ever takes an assertion back, and only the desktop audience's. Expiry is checked here; audience, state, and single-use are the caller's to enforce (the burn lives on the Gate, which owns request state). Every failure is the same error: the exchange must not say which check a forged assertion failed.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 843.
Signature: pub struct Editors {
What it does: Accounts allowed to use the editor once signed in. The list starts from PHEXT_EDITORS (the operator's bootstrap list) and can grow at runtime: when an editor accepts a submission, the originator's account is admitted — appended here and, when a backing file is configured (see Gate::load_editors_file), to that file, so the admission takes effect immediately and survives restarts. Entries sit behind a lock because admission happens through &Gate while other requests are reading the list.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 876.
Signature: pub fn from_env() -> Self {
What it does: Function Editors::from_env takes no inputs beyond the value it is called on, and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 880.
Signature: pub fn parse(raw: &str) -> Self {
What it does: Function parse takes raw: &str and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 887.
Signature: pub fn len(&self) -> usize {
What it does: Function len takes no inputs beyond the value it is called on, and gives back usize.
(Where these words came from: signature.)
Found in src/oauth.rs at line 891.
Signature: pub fn is_empty(&self) -> bool {
What it does: Function is_empty takes no inputs beyond the value it is called on, and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 895.
Signature: pub fn matches(&self, who: &str, email: &str) -> bool {
What it does: Function matches takes &self, who: &str, email: &str and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 904.
Signature: pub fn allows(&self, who: &str, email: &str) -> bool {
What it does: An empty list admits every signed-in account.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 912.
Signature: pub fn load_file(&self, path: &std::path::Path) -> usize {
What it does: Point the list at its backing file and load any entries already in it (one per line; blank lines and # comments are ignored, and a line may still carry several comma-separated entries). Entries the list already has are not duplicated. Returns how many were loaded.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 940.
Signature: pub fn admit(&self, who: &str, email: &str) -> bool {
What it does: Admit an account: add its account id (when valid) and its email (when usable), unless each is already covered, and append the new entries to the backing file when one is configured. Takes effect immediately. Returns true when the account is an editor afterwards.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 977.
Signature: pub struct Limiter {
What it does: In-memory cap on sign-in attempts per client address, per ten minutes. Counts OAuth start/callback attempts. Anonymous 401s are not counted, so opening the signed-out page does not spend the budget. The address is X-Real-IP when nginx sets it from $remote_addr; otherwise the last X-Forwarded-For hop, which is the one a single reverse proxy appends.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 983.
Signature: pub fn standard() -> Self {
What it does: Function Limiter::standard takes no inputs beyond the value it is called on, and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 987.
Signature: pub fn with_cap(cap: usize) -> Self {
What it does: Function with_cap takes cap: usize and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 991.
Signature: pub fn hit(&self, key: &str) -> Result<(), ()> {
What it does: Function hit takes &self, key: &str and gives back Result<(), ()>.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1006.
Signature: pub struct Reply {
What it does: A complete HTTP response for the hand-rolled servers to write out.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1015.
Signature: pub fn json(status: u16, value: serde_json::Value) -> Self {
What it does: Function Reply::json takes status: u16, value: serde_json::Value and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1058.
Signature: pub fn write_to(&self, out: &mut impl std::io::Write) {
What it does: Serialize as an HTTP/1.1 response with Connection: close. Auth and session bodies stay Cache-Control: no-store. There is no Access-Control-Allow-Origin: the editor is same-origin only.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1080.
Signature: pub const HSTS_VALUE: &str = "max-age=31536000";
What it does: One year. Matches deploy/nginx-edit.phext.io.conf. No includeSubDomains: this host is edit.phext.io, and a future sibling name under that host should not be pinned by accident.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1092.
Signature: pub const CONTENT_SECURITY_POLICY: &str = concat!( "default-src 'self'; ",
What it does: Policy for the embedded editor and the public pages. The shell is one HTML document: an inline script, an inline stylesheet, onclick attributes, and style attributes. A nonce or a hash does not cover event-handler or style attributes, so those would mean rewriting the shell. unsafe-inline stays for that reason. There is no unsafe-eval. Sign-in is a same-origin link to /api/auth/..., which 302s to Google or GitHub; top-level navigations are not restricted. upgrade-insecure-requests is added only when the browser connection is HTTPS, so a local http://127.0.0.1 session keeps working.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1106.
Signature: pub fn forwarded_https(headers: &HashMap<String, String>) -> bool {
What it does: Function forwarded_https takes headers: &HashMap<String, String> and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1114.
Signature: pub fn security_header_block_csp(https: bool, csp_override: Option<&str>) -> String {
What it does: Function security_header_block_csp takes https: bool, csp_override: Option<&str> and gives back String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1132.
Signature: pub fn security_header_block(https: bool) -> String {
What it does: Function security_header_block takes https: bool and gives back String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1136.
Signature: pub fn status_text(status: u16) -> &'static str {
What it does: Function status_text takes status: u16 and gives back &'static str.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1191.
Signature: pub struct Gate {
What it does: Access control for the editor servers: an OAuth session, or open when sign-in is not configured.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1209.
Signature: pub fn new(oauth: Oauth, editors: Editors) -> Self {
What it does: Function Gate::new takes oauth: Oauth, editors: Editors and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1235.
Signature: pub fn from_env() -> Self {
What it does: Function from_env takes no inputs beyond the value it is called on, and gives back Self.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1256.
Signature: pub fn enable_local(&self) {
What it does: Admit every direct request as a local developer. The phext-edit CLI calls this only after it has refused to bind anything but loopback. Nothing in the environment or in a request header calls it.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1260.
Signature: pub fn is_local(&self) -> bool {
What it does: Function is_local takes no inputs beyond the value it is called on, and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1267.
Signature: pub fn enable_claims(&self) {
What it does: Open claim mode: /api/claim accepts claims (the lookup stays public either way). The operator turns this on once the X app credentials are in place; tests call it directly.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1271.
Signature: pub fn claims_open(&self) -> bool {
What it does: Function claims_open takes no inputs beyond the value it is called on, and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1276.
Signature: pub fn locked(&self) -> bool {
What it does: True when some credential is required for the API.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1280.
Signature: pub fn oauth(&self) -> &Oauth {
What it does: Function oauth takes no inputs beyond the value it is called on, and gives back &Oauth.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1284.
Signature: pub fn editors(&self) -> &Editors {
What it does: Function editors takes no inputs beyond the value it is called on, and gives back &Editors.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1291.
Signature: pub fn session(&self, headers: &HashMap<String, String>) -> Option<Session> {
What it does: The signed-in session for a request, if any. In --local mode this is the synthetic local developer (never for a forwarded request), mirroring session_view; otherwise it is the cookie session.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1308.
Signature: pub fn is_editor(&self, session: &Session) -> bool {
What it does: Whether a session belongs to an approved editor.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1315.
Signature: pub fn admit_account(&self, who: &str, email: &str) -> bool {
What it does: Admit an account as an editor, effective immediately and persisted to the editors file when one is configured. Used when an editor accepts a submission: the originator joins the editors.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1323.
Signature: pub fn load_editors_file(&self, path: &std::path::Path) {
What it does: Load additional editor entries from a file (one per line) and make it the backing file for future admissions. The phext-edit server calls this with its default admitted-editors file when PHEXT_EDITORS_FILE is not set.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1328.
Signature: pub fn describe(&self) -> Vec<String> {
What it does: Startup lines describing how the API is protected.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1352.
Signature: pub fn route(&self, method: &str, path: &str, headers: &HashMap<String, String>) -> Option<Reply> {
What it does: Handles /api/session and /api/auth/*. Returns None for other paths.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1396.
Signature: pub fn admit(&self, method: &str, path: &str, headers: &HashMap<String, String>) -> Result<(), Reply> {
What it does: Decides whether a non-auth request may proceed. The gate is by operation, not by surface (Will, 2026-11-19: "only require a login to edit"). Reading — every GET/HEAD on the API, plus the editor's viewport POSTs and its search — is open to anyone, signed in or not. Writing requires a session on the editor list, with the CSRF check writes have always had; a signed-in non-editor's write keeps the editor-list refusal.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1545.
Signature: pub fn sso( &self, aud: &str, headers: &HashMap<String, String>, query: &HashMap<String, String>, ) -> Reply {
What it does: GET /api/auth/sso/<aud> — the cross-site handoff to one allowlisted audience (mutable, exocortexia, wishnode). Layering follows the claims/submissions precedent in the servers: a signed-in account is enough; an editor's place is not required (sso_admits is the single predicate that decides). With a session, the reply 302s to the audience's callback with a freshly sealed assertion. Without one, it 302s to this site's own root with this endpoint as the next, so the ordinary provider sign-in returns the browser here and the handoff completes — the OAuth next itself stays same-site throughout. An audience outside the allowlist, or one not configured (no SSO secret, or no target for that audience), simply does not exist: 404 — checked before any session handling, so an unknown audience never enters the sign-in return flow.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1743.
Signature: pub fn cookie_header(name: &str, value: &str, max_age: i64, secure: bool) -> String {
What it does: Function cookie_header takes name: &str, value: &str, max_age: i64, secure: bool and gives back String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1850.
Signature: pub fn safe_next(next: &str) -> String {
What it does: Keeps the post-sign-in redirect on this site: a path, optionally with a #coordinate fragment. A : is refused in the path portion only. Past the ?, a query may legitimately carry URLs of its own — an OAuth authorization request returning from sign-in names https redirect URIs and, for CIMD clients, an https client_id — and a colon there cannot move the destination off this site, because the value still begins with a single / and browsers resolve it as a path on this origin. The length cap admits those same authorization requests (a full /oauth/authorize?... round trip runs several hundred characters); the sealed pending cookie that carries next through a provider sign-in holds it comfortably.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1888.
Signature: pub fn loopback_return(raw: &str) -> Option<String> {
What it does: Admit a desktop return URL: the address of the listener the app opened for this one sign-in attempt. The bar is the loopback literal itself, checked character by character — not a URL parse that a hostname or userinfo could slip through: scheme http exactly. Loopback has a real origin but no CA issues certificates for it; RFC 8252's native-app practice is plain http on the loopback interface, which never leaves the machine. host the literal 127.0.0.1 or [::1] — not localhost, not any other name, not another loopback address. A name is whatever the resolver says it is (hosts files are editable), and the app binds the numeric loopback anyway. an explicit port, 1–65535 — the app always listens on an ephemeral port it was given, never a default. then only a path/query tail of plain URL characters: no # (a fragment never reaches a server anyway, and its presence means the value was not a listener address), no whitespace, controls, or non-ASCII. The result is capped short enough to ride the sign-in bounce — this endpoint travels as the next of a /?next= redirect, well inside the length safe_next admits there.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1930.
Signature: pub fn valid_state_nonce(state: &str) -> bool {
What it does: The desktop attempt's state nonce: long enough to be unguessable, plain enough to travel in URLs and assertions unchanged. The app generates it (32 random hex/letters in practice); this only checks the shape.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 1937.
Signature: pub fn valid_who(who: &str) -> bool {
What it does: Function valid_who takes who: &str and gives back bool.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1955.
Signature: pub fn display_name(raw: &str, fallback: &str) -> String {
What it does: Function display_name takes raw: &str, fallback: &str and gives back String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1970.
Signature: pub fn clean_email(raw: &str) -> String {
What it does: Function clean_email takes raw: &str and gives back String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 1991.
Signature: pub fn clean_handle(raw: &str) -> String {
What it does: Function clean_handle takes raw: &str and gives back String.
(Where these words came from: signature.)
Found in src/oauth.rs at line 2004.
Signature: pub fn clean_twitter_handle(raw: &str) -> String {
What it does: An X username verbatim: [A-Za-z0-9_]{1,15}, case preserved. Unlike clean_handle this keeps underscores — they are load-bearing in X handles (@Grady_Booch, @4ster_light) and the wavefront lookup keys on them. Anything outside the charset makes the handle unusable ("").
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 2016.
Signature: pub fn token_eq(expected: &str, given: &str) -> bool {
What it does: Constant-time comparison; an empty expected value never matches.
(Where these words came from: doc comment.)
Found in src/oauth.rs at line 2285.
Signature: pub fn is_loopback_bind(host: &str) -> bool {
What it does: True when host is a loopback listen address: 127.0.0.0/8, ::1, or localhost. 0.0.0.0 and :: are not loopback — they accept remote connections.
(Where these words came from: doc comment.)
Found in src/search.rs at line 19.
Signature: pub struct SearchHit {
What it does: A search hit: coordinate + context around the match.
(Where these words came from: doc comment.)
Found in src/search.rs at line 132.
Signature: pub fn search_lattice( buffer: &[u8], index: &LatticeIndex, pattern: &str, case_sensitive: bool, max_results: usize, ) -> Vec<SearchHit> {
What it does: Search the lattice for a text pattern (single-threaded). Returns hits in document order (by coordinate).
(Where these words came from: doc comment.)
Found in src/search.rs at line 177.
Signature: pub fn search_lattice_parallel( buffer: &[u8], index: &LatticeIndex, pattern: &str, case_sensitive: bool, max_results: usize, ) -> Vec<SearchHit> {
What it does: Search the lattice for a text pattern across all available cores. Uses rayon's work-stealing thread pool. Each scroll is a work unit — scrolls are independent so there's zero contention. Results are collected per-thread then merged in coordinate order. Falls back to serial for small lattices (< PARALLEL_THRESHOLD scrolls) where thread synchronization cost exceeds the parallelism benefit.
(Where these words came from: doc comment.)
Found in src/search.rs at line 261.
Signature: pub fn search_lattice_auto( buffer: &[u8], index: &LatticeIndex, pattern: &str, case_sensitive: bool, max_results: usize, ) -> Vec<SearchHit> {
What it does: Auto-selecting search: picks serial or parallel based on data characteristics. This is what the editor should call.
(Where these words came from: doc comment.)
Found in src/search.rs at line 274.
Signature: pub fn search_coordinates( index: &LatticeIndex, pattern: &str, ) -> Vec<Coordinate> {
What it does: Search for coordinates matching a coordinate pattern string. Supports partial coordinates like "3.3.3" (matches any coordinate where any arm starts with 3.3.3).
(Where these words came from: doc comment.)
Found in src/search.rs at line 292.
Signature: pub fn build_index_parallel(buffer: &[u8], chunk_size: usize) -> LatticeIndex {
What it does: Parallel index build — partition the buffer into chunks, scan each for delimiter boundaries, then merge. For very large phexts (>100MB) where the O(n) sequential scan becomes noticeable. Currently unused — sequential build is ~30ms for 4.26 MB which is already below perceptual threshold. Included for future scaling.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 36.
Signature: pub enum AxisGroup {
What it does: The two fundamental axis groups in the sentron topology.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 44.
Signature: pub fn name(&self) -> &'static str {
What it does: Function AxisGroup::name takes no inputs beyond the value it is called on, and gives back &'static str.
(Where these words came from: signature.)
Found in src/sentron.rs at line 52.
Signature: pub fn dimensions(&self) -> [Dimension; 4] {
What it does: The 4 dimensions in this axis group.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 72.
Signature: pub struct Axon {
What it does: One connection axis: a dimension with backward/forward reach.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 87.
Signature: pub fn total(&self) -> usize {
What it does: Total reachable coordinates along this axis.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 92.
Signature: pub fn weight(&self, max_total: usize) -> f64 {
What it does: Visual weight: how "thick" this connection is (0.0 to 1.0).
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 100.
Signature: pub struct Neuron {
What it does: A neuron in the sentron: a populated coordinate with its 8 axons.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 110.
Signature: pub struct Sentron {
What it does: The sentron: 40 nearest populated coordinates to the cursor, with full 8-way connectivity analysis.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 126.
Signature: pub const SENTRON_CAPACITY: usize = 40;
What it does: The maximum number of neurons in a sentron.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 129.
Signature: pub const CONNECTIONS_PER_NEURON: usize = 8;
What it does: The number of connections per neuron.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 136.
Signature: pub fn build(center: &Coordinate, index: &LatticeIndex) -> Sentron {
What it does: Build a sentron centered on a coordinate. Finds the 40 nearest populated coordinates and analyzes their 8-way connectivity along structural/sequential axes.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 175.
Signature: pub fn size(&self) -> usize {
What it does: How many neurons are in this sentron.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 180.
Signature: pub fn structural_axons(&self) -> &[Axon] {
What it does: The structural (spatial) axons: Library, Shelf, Series, Collection.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 185.
Signature: pub fn sequential_axons(&self) -> &[Axon] {
What it does: The sequential (temporal) axons: Volume, Book, Chapter, Section.
(Where these words came from: doc comment.)
Found in src/sentron.rs at line 191.
Signature: pub fn topology_string(&self) -> String {
What it does: Render the sentron as a compact topology string. Shows connection density along each axis.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 83.
Signature: pub fn is_break(b: u8) -> bool {
What it does: Whether b is a phext dimension break.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 89.
Signature: pub type Selector = Box<dyn Fn(&Coordinate) -> Option<Coordinate> + Send + Sync>;
What it does: Maps a source scroll to the coordinate an index entry should point at, or None to leave the scroll out of that index.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 94.
Signature: pub struct IndexSpec {
What it does: Which scrolls feed which index. The selectors can't be persisted, so the label stands in for them: change the selectors, change the label, and the next open rebuilds instead of trusting a sidecar built another way.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 103.
Signature: pub fn new(label: &str, names: Selector, terms: Selector) -> IndexSpec {
What it does: Function IndexSpec::new takes label: &str, names: Selector, terms: Selector and gives back IndexSpec.
(Where these words came from: signature.)
Found in src/sidecar.rs at line 108.
Signature: pub fn scrolls() -> IndexSpec {
What it does: Every scroll is its own term document; no names.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 115.
Signature: pub enum OpenMode {
What it does: How IndexedLattice::open got its indexes.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 127.
Signature: pub struct SyncReport {
What it does: What a save() or sync did.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 137.
Signature: pub fn sidecar_dir(source: &Path) -> PathBuf {
What it does: The sidecar directory for a phext path: wiki.phext → wiki.phext.idx.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 733.
Signature: pub struct IndexedLattice {
What it does: A MappedLattice whose span, name, and term indexes persist in a sidecar. Queries reflect the last save() (or open); unsaved overlay edits are visible through lattice() reads but not through name/resolve/search until saved.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 746.
Signature: pub fn open<P: AsRef<Path>>(path: P, spec: IndexSpec) -> io::Result<(IndexedLattice, OpenMode)> {
What it does: Open path with indexes from its sidecar: load them if they match the source, patch them if the source changed, or build them if absent.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 793.
Signature: pub fn rebuild(&mut self) -> io::Result<SyncReport> {
What it does: Discard the sidecar and index every scroll again.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 800.
Signature: pub fn lattice(&self) -> &MappedLattice {
What it does: Function lattice takes no inputs beyond the value it is called on, and gives back &MappedLattice.
(Where these words came from: signature.)
Found in src/sidecar.rs at line 805.
Signature: pub fn lattice_mut(&mut self) -> &mut MappedLattice {
What it does: Edit through the lattice, then save() to persist and re-sync the indexes.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 810.
Signature: pub fn sidecar(&self) -> &Path {
What it does: The sidecar directory.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 815.
Signature: pub fn delta_len(&self) -> usize {
What it does: Scrolls changed since the base (entries in the delta).
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 821.
Signature: pub fn set_compact_threshold(&mut self, n: usize) {
What it does: Fold the delta into the base once it holds more than n scrolls. Defaults to 64 + 1% of the source's scrolls.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 827.
Signature: pub fn save(&mut self) -> io::Result<SyncReport> {
What it does: Save pending edits to the source, then record exactly the edited scrolls in the delta (or compact, past the threshold).
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 837.
Signature: pub fn compact(&mut self) -> io::Result<SyncReport> {
What it does: Fold the delta into a new base now.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 845.
Signature: pub fn name(&self, name: &str) -> Option<Coordinate> {
What it does: Exact name lookup (first owner in document order wins).
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 851.
Signature: pub fn resolve(&self, name: &str) -> Option<Coordinate> {
What it does: Exact lookup, then case-folded.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 882.
Signature: pub fn search(&self, query: &str, limit: usize) -> Vec<TermHit> {
What it does: BM25-ranked documents for a free-text query (terms OR'ed), best first.
(Where these words came from: doc comment.)
Found in src/sidecar.rs at line 929.
Signature: pub fn doc_count(&self) -> usize {
What it does: Live term documents.
(Where these words came from: doc comment.)
Found in src/sponsor.rs at line 10.
Signature: pub const ENV_NAME: &str = "PHEXT_SPONSOR_URL";
What it does: Environment variable deploy.sh writes into the phext-edit service environment.
(Where these words came from: doc comment.)
Found in src/sponsor.rs at line 13.
Signature: pub const SLOT: &str = "<!--phext-sponsor-->";
What it does: Placeholder in the public HTML. Replaced when a page is served.
(Where these words came from: doc comment.)
Found in src/sponsor.rs at line 19.
Signature: pub struct SponsorOffer {
What it does: A configured donation URL, or nothing.
(Where these words came from: doc comment.)
Found in src/sponsor.rs at line 24.
Signature: pub fn hidden() -> Self {
What it does: Function SponsorOffer::hidden takes no inputs beyond the value it is called on, and gives back Self.
(Where these words came from: signature.)
Found in src/sponsor.rs at line 31.
Signature: pub fn from_env() -> Self {
What it does: Read [ENV_NAME]. A missing variable and a blank value both hide the link. A non-empty value that is not a usable https URL also hides it, and warns once per call so a bad deploy is visible without breaking startup.
(Where these words came from: doc comment.)
Found in src/sponsor.rs at line 49.
Signature: pub fn parse(raw: &str) -> Self {
What it does: Accept a Stripe Payment Link (or any https URL safe to place in an href). Rejects anything that could break out of the attribute or send the visitor somewhere other than an https page.
(Where these words came from: doc comment.)
Found in src/sponsor.rs at line 56.
Signature: pub fn url(&self) -> Option<&str> {
What it does: Function url takes no inputs beyond the value it is called on, and gives back Option<&str>.
(Where these words came from: signature.)
Found in src/sponsor.rs at line 61.
Signature: pub fn markup(&self) -> String {
What it does: The visible control, or an empty string when the link is hidden.
(Where these words came from: doc comment.)
Found in src/sponsor.rs at line 76.
Signature: pub fn apply_slot(html: &str, offer: &SponsorOffer) -> String {
What it does: Replace every [SLOT] in html. Pages without the slot are unchanged apart from the usual allocate-on-replace cost when the caller already checked; this function always returns an owned string.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 13.
Signature: pub struct ScrollStats {
What it does: Per-scroll statistics for the status bar and info panel.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 22.
Signature: pub fn from_bytes(bytes: &[u8]) -> ScrollStats {
What it does: Compute stats from raw scroll bytes.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 33.
Signature: pub fn size_display(&self) -> String {
What it does: Human-readable size.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 47.
Signature: pub struct DimensionDensity {
What it does: Density profile for one dimension: how many populated scrolls exist at each value along that dimension.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 59.
Signature: pub fn build(dimension: Dimension, index: &LatticeIndex) -> DimensionDensity {
What it does: Build the density profile for one dimension across all populated coordinates.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 77.
Signature: pub fn sparkline(&self, width: usize) -> String {
What it does: Render a sparkline string showing relative density. Width is the number of characters available.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 120.
Signature: pub fn distinct_values(&self) -> usize {
What it does: How many distinct values exist in this dimension.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 125.
Signature: pub fn range(&self) -> Option<(usize, usize)> {
What it does: The range of populated values.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 139.
Signature: pub struct Neighborhood {
What it does: Neighborhood context: what's near the current coordinate.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 152.
Signature: pub fn build(coord: &Coordinate, index: &LatticeIndex) -> Neighborhood {
What it does: Build neighborhood context for a coordinate.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 195.
Signature: pub struct LatticeOverview {
What it does: Global lattice overview stats.
(Where these words came from: doc comment.)
Found in src/stats.rs at line 206.
Signature: pub fn build(_buffer: &[u8], index: &LatticeIndex) -> LatticeOverview {
What it does: Build a complete overview of the lattice.
(Where these words came from: doc comment.)
Found in src/submissions.rs at line 20.
Signature: pub enum SubmissionStatus {
What it does: A named choice named SubmissionStatus. It is one of: Pending; Accepted; Declined.
(Where these words came from: signature.)
Found in src/submissions.rs at line 27.
Signature: pub struct Submission {
What it does: A data shape named Submission. Its fields are: pub id: String; pub filename: String; pub who: String; pub email: String; pub name: String; pub submitted_at: i64; pub bytes: usize; pub scrolls: usize; pub status: SubmissionStatus; pub decided_by: String; pub decided_at: i64; pub curated_as: String.
(Where these words came from: signature.)
Found in src/submissions.rs at line 65.
Signature: pub fn sanitize_filename(raw: &str) -> Option<String> {
What it does: Reduce an offered file name to a bare, safe *.phext name, or None when nothing usable remains. Directory parts are stripped, so ../../notes.phext is just notes.phext.
(Where these words came from: doc comment.)
Found in src/submissions.rs at line 86.
Signature: pub fn count_scrolls(content: &str) -> Option<usize> {
What it does: Count the populated scrolls in a phext text. Wrapped in catch_unwind: the text is user input, and a parser panic must become a rejection, never a crashed request.
(Where these words came from: doc comment.)
Found in src/submissions.rs at line 116.
Signature: pub fn create( dir: &Path, filename: &str, who: &str, email: &str, name: &str, content: &str, ) -> Result<Submission, String> {
What it does: Store a new pending submission. Validates the file name and the phext (non-empty, parseable) before anything touches disk.
(Where these words came from: doc comment.)
Found in src/submissions.rs at line 159.
Signature: pub fn list(dir: &Path) -> Vec<Submission> {
What it does: Every submission in the directory, oldest first. Unreadable or malformed entries are skipped, never fatal.
(Where these words came from: doc comment.)
Found in src/submissions.rs at line 181.
Signature: pub fn get(dir: &Path, id: &str) -> Option<Submission> {
What it does: One submission by id, or None. Ids from the network are validated before they ever become a path.
(Where these words came from: doc comment.)
Found in src/submissions.rs at line 194.
Signature: pub fn content(dir: &Path, id: &str) -> Option<Vec<u8>> {
What it does: The uploaded phext bytes for a submission.
(Where these words came from: doc comment.)
Found in src/submissions.rs at line 203.
Signature: pub fn set_decision( dir: &Path, id: &str, status: SubmissionStatus, decided_by: &str, curated_as: &str, ) -> Result<Submission, String> {
What it does: Record an accept or decline. The caller decides the status rules (only a pending submission may be decided); this just persists.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 22.
Signature: pub struct Bm25Params {
What it does: BM25 tuning. The defaults are the usual Robertson/Lucene values.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 37.
Signature: pub struct TermHit {
What it does: A ranked hit: the document coordinate and its BM25 score.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 50.
Signature: pub struct TermIndex {
What it does: Inverted index over lattice documents with BM25 ranking.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 67.
Signature: pub fn tokenize(text: &str) -> impl Iterator<Item = String> + '_ {
What it does: Split text into index terms: lowercased runs of letters/digits, at least 2 chars.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 91.
Signature: pub fn new(params: Bm25Params) -> TermIndex {
What it does: An empty index.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 106.
Signature: pub fn build(lattice: &MappedLattice) -> TermIndex {
What it does: Index every populated scroll as its own document (overlay edits included).
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 113.
Signature: pub fn build_grouped<F>(lattice: &MappedLattice, group: F) -> TermIndex where F: Fn(&Coordinate) -> Option<Coordinate> + Sync, {
What it does: Index scrolls grouped into documents: group maps a scroll coordinate to the coordinate of the document it belongs to, or None to leave it out. Tokenization runs in parallel; documents keep document order.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 177.
Signature: pub fn upsert(&mut self, coord: Coordinate, text: &str) {
What it does: Add or replace the document at coord with text. Replacement retires the old document id and appends a new one, so postings stay sorted without rewriting them. Retired postings still occupy memory and still count toward document frequency until the index is rebuilt; check retired() to decide when.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 184.
Signature: pub fn remove(&mut self, coord: &Coordinate) -> bool {
What it does: Remove the document at coord. Returns whether it was indexed.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 200.
Signature: pub fn search(&self, query: &str, limit: usize) -> Vec<TermHit> {
What it does: Rank documents against a free-text query (terms are OR'ed). Ties break in document order, so results are deterministic.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 240.
Signature: pub fn doc_count(&self) -> usize {
What it does: Number of live documents.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 245.
Signature: pub fn term_count(&self) -> usize {
What it does: Number of distinct terms.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 250.
Signature: pub fn retired(&self) -> usize {
What it does: Documents replaced or removed since the last build.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 255.
Signature: pub fn document_frequency(&self, term: &str) -> usize {
What it does: How many documents (including retired ones) contain term.
(Where these words came from: doc comment.)
Found in src/term_index.rs at line 260.
Signature: pub fn heap_bytes(&self) -> usize {
What it does: Approximate heap footprint in bytes.
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 23.
Signature: pub const MAX_Q_BYTES: usize = 64 * 1024;
What it does: The largest q string a record may carry (64 KiB). A traversal is a list of addresses; this is a storage bound, not a grammar limit — the tour grammar itself is unbounded.
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 26.
Signature: pub struct Traversal {
What it does: A data shape named Traversal. Its fields are: pub id: String; pub who: String; pub name: String; pub q: String; pub created: i64; pub updated: i64.
(Where these words came from: signature.)
Found in src/traversals.rs at line 66.
Signature: pub fn valid_name(raw: &str) -> Option<String> {
What it does: A name is usable when, trimmed, it holds 1..=120 chars.
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 107.
Signature: pub fn count_steps(q: &str) -> usize {
What it does: How many steps of a q string parse under the tour grammar.
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 113.
Signature: pub fn valid_q(raw: &str) -> Option<String> {
What it does: A q string is storable when it is non-empty, within the storage bound, and at least one of its steps parses.
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 126.
Signature: pub fn create(dir: &Path, who: &str, name: &str, q: &str) -> Result<Traversal, String> {
What it does: Store a new traversal for who. Validates name and q before anything touches disk.
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 152.
Signature: pub fn list(dir: &Path) -> Vec<Traversal> {
What it does: Every traversal in the directory, oldest first. Unreadable or malformed entries are skipped, never fatal.
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 174.
Signature: pub fn get(dir: &Path, id: &str) -> Option<Traversal> {
What it does: One traversal by id, or None. Ids from the network are validated before they ever become a path.
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 188.
Signature: pub fn update(dir: &Path, id: &str, name: &str, q: &str) -> Result<Traversal, String> {
What it does: Replace a record's name and q (ownership is the caller's check, as in submissions::set_decision).
(Where these words came from: doc comment.)
Found in src/traversals.rs at line 200.
Signature: pub fn remove(dir: &Path, id: &str) -> bool {
What it does: Delete a record. Returns false when it was not there.
(Where these words came from: doc comment.)
Found in src/tts.rs at line 14.
Signature: pub const ZERO_SOUND: &str = "om";
What it does: Zero = "om" — the nada sound, silence between words
(Where these words came from: doc comment.)
Found in src/tts.rs at line 47.
Signature: pub fn byte_to_syllable(value: u8) -> String {
What it does: Convert a single byte value (0-255) to a syllable
(Where these words came from: doc comment.)
Found in src/tts.rs at line 62.
Signature: pub fn dim_to_syllables(value: u32) -> String {
What it does: Convert a coordinate dimension value (e.g., 1, 5, 9) to a syllable sequence
(Where these words came from: doc comment.)
Found in src/tts.rs at line 82.
Signature: pub struct SubCoord {
What it does: A 3D subcoordinate (e.g., 1.1.1)
(Where these words came from: doc comment.)
Found in src/tts.rs at line 89.
Signature: pub fn new(a: u32, b: u32, c: u32) -> Self {
What it does: Function SubCoord::new takes a: u32, b: u32, c: u32 and gives back Self.
(Where these words came from: signature.)
Found in src/tts.rs at line 94.
Signature: pub fn pronounce(&self) -> String {
What it does: Pronounce as "a b c" syllables
(Where these words came from: doc comment.)
Found in src/tts.rs at line 103.
Signature: pub fn pronounce_verbose(&self) -> String {
What it does: Pronounce with element names
(Where these words came from: doc comment.)
Found in src/tts.rs at line 113.
Signature: pub struct CoordPronunciation {
What it does: Full 9D coordinate pronunciation
(Where these words came from: doc comment.)
Found in src/tts.rs at line 121.
Signature: pub fn from_coordinate(coord: &Coordinate) -> Self {
What it does: Create from a libphext Coordinate
(Where these words came from: doc comment.)
Found in src/tts.rs at line 142.
Signature: pub fn parse(s: &str) -> Option<Self> {
What it does: Parse from string "1.1.1/1.1.1/1.1.1"
(Where these words came from: doc comment.)
Found in src/tts.rs at line 167.
Signature: pub fn pronounce(&self) -> String {
What it does: Full pronunciation with om boundaries
(Where these words came from: doc comment.)
Found in src/tts.rs at line 176.
Signature: pub fn pronounce_compact(&self) -> String {
What it does: Compact pronunciation (no om boundaries)
(Where these words came from: doc comment.)
Found in src/tts.rs at line 185.
Signature: pub fn pronounce_verbose(&self) -> String {
What it does: Verbose with dimension labels
(Where these words came from: doc comment.)
Found in src/tts.rs at line 195.
Signature: pub fn ipa_hint(&self) -> String {
What it does: Get IPA-style phonetic hint
(Where these words came from: doc comment.)
Found in src/tts.rs at line 205.
Signature: pub fn to_ssml(coord: &str, rate: &str) -> String {
What it does: Generate SSML for TTS engines (Google, Amazon Polly, etc.)
(Where these words came from: doc comment.)
Found in src/tts.rs at line 225.
Signature: pub fn generate_pronunciation_doc(coordinates: &[&str]) -> String {
What it does: Generate a batch pronunciation document
(Where these words came from: doc comment.)
Found in src/tts.rs at line 257.
Signature: pub fn special_coords() -> Vec<(&'static str, &'static str, String)> {
What it does: Special coordinates with meaning
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 27.
Signature: pub enum Phase {
What it does: The 10 SDLC phases mapped to collection values. (Collection 10 = Proofs was added under decision D1 of the phcc modernization design, 2026-11-07: proof artifacts — ACSL contracts, verification receipts, waivers — live at the artifact's own address in their own phase, so the trace walk stays uniform.)
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 41.
Signature: pub fn from_collection(c: usize) -> Option<Phase> {
What it does: Function Phase::from_collection takes c: usize and gives back Option<Phase>.
(Where these words came from: signature.)
Found in src/uml6d.rs at line 57.
Signature: pub fn name(&self) -> &'static str {
What it does: Function name takes no inputs beyond the value it is called on, and gives back &'static str.
(Where these words came from: signature.)
Found in src/uml6d.rs at line 72.
Signature: pub fn short(&self) -> &'static str {
What it does: Function short takes no inputs beyond the value it is called on, and gives back &'static str.
(Where these words came from: signature.)
Found in src/uml6d.rs at line 88.
Signature: pub fn color(&self) -> &'static str {
What it does: CSS color for this phase.
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 104.
Signature: pub fn all() -> &'static [Phase] {
What it does: All phases in order.
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 116.
Signature: pub struct ArtifactAddr {
What it does: A 5D artifact address — stable across SDLC phases.
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 126.
Signature: pub fn from_coordinate(c: &Coordinate) -> Self {
What it does: Extract the 5D artifact address from a full coordinate.
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 138.
Signature: pub fn to_coordinate(&self, phase: Phase) -> Coordinate {
What it does: Build a full coordinate by combining this address with an SDLC phase and outer dimensions (defaulting outer to 1.1.1).
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 143.
Signature: pub fn to_coordinate_with_outer( &self, phase: Phase, library: usize, shelf: usize, series: usize, ) -> Coordinate {
What it does: Build a full coordinate with explicit outer dimensions.
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 166.
Signature: pub fn display(&self) -> String {
What it does: Display as volume.book.chapter/section.scroll
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 179.
Signature: pub struct UmlContext {
What it does: Full 6D UML context for a coordinate.
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 187.
Signature: pub fn from_coordinate(c: &Coordinate) -> Self {
What it does: Function UmlContext::from_coordinate takes c: &Coordinate and gives back Self.
(Where these words came from: signature.)
Found in src/uml6d.rs at line 202.
Signature: pub fn trace_artifact( addr: &ArtifactAddr, index: &LatticeIndex, library: usize, shelf: usize, series: usize, ) -> Vec<(Phase, bool)> {
What it does: Trace an artifact across all SDLC phases. Returns (phase, has_content) for each populated collection at this 5D address.
(Where these words came from: doc comment.)
Found in src/uml6d.rs at line 217.
Signature: pub fn artifacts_in_phase( phase: Phase, index: &LatticeIndex, coords: &[Coordinate], ) -> Vec<ArtifactAddr> {
What it does: Find all populated 5D addresses within a given phase.
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 54.
Signature: pub struct DNode {
What it does: A node in a 6D UML diagram: one artifact, drawn in one phase lane.
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 64.
Signature: pub struct DEdge {
What it does: A typed relation between two artifacts.
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 73.
Signature: pub struct Diagram {
What it does: A 6D UML diagram: nodes + edges under one projection phase.
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 85.
Signature: pub struct ParseError {
What it does: A data shape named ParseError. Its fields are: pub line: usize; pub message: String.
(Where these words came from: signature.)
Found in src/uml6d_diagram.rs at line 134.
Signature: pub fn parse_addr(s: &str) -> Result<ArtifactAddr, String> {
What it does: Parse a 5D artifact address in display form: volume.book.chapter/section.scroll
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 224.
Signature: pub fn parse_diagram(text: &str) -> Result<Diagram, ParseError> {
What it does: Parse the diagram notation.
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 384.
Signature: pub fn to_notation(&self) -> String {
What it does: Emit the canonical notation for this diagram.
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 427.
Signature: pub fn project(&self, phase: Phase) -> Diagram {
What it does: Project the diagram into another phase: node lanes are re-read in the new phase, but every artifact address is unchanged. This is the phase-invariance property made operational.
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 446.
Signature: pub fn to_text(&self) -> String {
What it does: Plain-text rendering: lanes grouped in phase order, edges listed.
(Where these words came from: doc comment.)
Found in src/uml6d_diagram.rs at line 491.
Signature: pub fn to_svg(&self) -> String {
What it does: SVG rendering. Layout is deterministic: one vertical lane per phase present among the nodes (in Phase::all() order), nodes stacked in canonical address order, edges as curved paths under the boxes.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 33.
Signature: pub enum EditOp {
What it does: An edit operation that can be undone/redone.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 54.
Signature: pub fn apply(&self, text: &str) -> String {
What it does: Apply this operation to text, returning the new text.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 85.
Signature: pub fn inverse(&self) -> EditOp {
What it does: Compute the inverse operation (for undo).
(Where these words came from: doc comment.)
Found in src/undo.rs at line 104.
Signature: pub fn to_scroll(&self, cursor_before: Position, cursor_after: Position) -> String {
What it does: Serialize to the phext scroll format.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 130.
Signature: pub fn from_scroll(scroll: &str) -> Option<(EditOp, Position, Position)> {
What it does: Deserialize from a phext scroll.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 180.
Signature: pub struct UndoRecord {
What it does: An undo record: operation + cursor state.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 258.
Signature: pub struct UndoEngine {
What it does: The undo engine: manages edit history across all scrolls. Each scroll has its own independent undo/redo stack. The full history can be serialized to a work phext file.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 266.
Signature: pub fn new() -> UndoEngine {
What it does: Function UndoEngine::new takes no inputs beyond the value it is called on, and gives back UndoEngine.
(Where these words came from: signature.)
Found in src/undo.rs at line 274.
Signature: pub fn record( &mut self, target: Coordinate, op: EditOp, cursor_before: Position, cursor_after: Position, ) {
What it does: Record an edit operation.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 295.
Signature: pub fn undo(&mut self, target: &Coordinate) -> Option<(EditOp, Position)> {
What it does: Undo the last edit on a scroll. Returns the inverse operation and the cursor position to restore.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 302.
Signature: pub fn redo(&mut self, target: &Coordinate) -> Option<(EditOp, Position)> {
What it does: Redo the next edit on a scroll.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 309.
Signature: pub fn can_undo(&self, target: &Coordinate) -> bool {
What it does: Can we undo on this scroll?
(Where these words came from: doc comment.)
Found in src/undo.rs at line 314.
Signature: pub fn can_redo(&self, target: &Coordinate) -> bool {
What it does: Can we redo on this scroll?
(Where these words came from: doc comment.)
Found in src/undo.rs at line 319.
Signature: pub fn depth(&self, target: &Coordinate) -> usize {
What it does: Undo depth for a scroll.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 324.
Signature: pub fn total_edits(&self) -> usize {
What it does: Total edits recorded globally.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 329.
Signature: pub fn dirty_scrolls(&self) -> Vec<Coordinate> {
What it does: Which scrolls have been modified.
(Where these words came from: doc comment.)
Found in src/undo.rs at line 343.
Signature: pub fn to_work_phext(&self) -> Vec<u8> {
What it does: Serialize the full undo history to a phext byte vector. Each undo record becomes a scroll in the work phext. Coordinate mapping: Z arm = target scroll's Z arm Y arm = target scroll's Y arm X arm = chapter = sequence number, section = 1, scroll = 1
(Where these words came from: doc comment.)
Found in src/undo.rs at line 377.
Signature: pub fn from_work_phext(bytes: &[u8], _target_index: &crate::index::LatticeIndex) -> UndoEngine {
What it does: Load undo history from a work phext.
(Where these words came from: doc comment.)
Found in src/wavefront.rs at line 23.
Signature: pub enum Region {
What it does: A named choice named Region. It is one of: Hearth; Shoals; OpenWater.
(Where these words came from: signature.)
Found in src/wavefront.rs at line 31.
Signature: pub fn label(self) -> &'static str {
What it does: Display label, exactly as the phext's index words it.
(Where these words came from: doc comment.)
Found in src/wavefront.rs at line 50.
Signature: pub struct Placement {
What it does: A data shape named Placement. Its fields are: pub coordinate: String; pub region: Region; pub label: String.
(Where these words came from: signature.)
Found in src/wavefront.rs at line 59.
Signature: pub struct Person {
What it does: A data shape named Person. Its fields are: pub handle: String; pub name: String; pub placements: Vec<Placement>.
(Where these words came from: signature.)
Found in src/wavefront.rs at line 118.
Signature: pub fn normalize_handle(raw: &str) -> Option<String> {
What it does: Reduce a user-typed handle to its lookup key: trimmed, one leading @ dropped, lowercased, underscores kept. None when what remains is not a possible X handle — callers answer "not in the map", never a filesystem or phext access, so hostile input ends here.
(Where these words came from: doc comment.)
Found in src/wavefront.rs at line 130.
Signature: pub fn lookup(raw: &str) -> Option<Person> {
What it does: The map's entry for a handle, however the visitor typed it.
(Where these words came from: doc comment.)
Found in src/wavefront.rs at line 136.
Signature: pub fn snapshot_handles() -> usize {
What it does: How many distinct accounts the snapshot holds.
(Where these words came from: doc comment.)
Found in src/wavefront.rs at line 141.
Signature: pub fn snapshot_placements() -> usize {
What it does: Total placements across all accounts (trails count twice).
(Where these words came from: doc comment.)