Crate ctb_formats_dcstring

Crate ctb_formats_dcstring 

Source
Expand description

Document Character String (DcString, DcStr), Document Character (DcChar), and related Document Character Text formats (DcText, DcList, DcUtf).

Re-exports§

pub use converters::dctext::DcList;
pub use converters::transform::apply_dc_transformation;
pub use converters::transform::apply_dc_transformations;
pub use converters::transform::apply_semantic_to_text_with_resolver;
pub use converters::transform::transform_dclist_unicode_to_short_dc;
pub use converters::utf8::DcNormalizationMode;
pub use converters::utf8::normalize_dclist_all;
pub use converters::utf8::normalize_dcmstring_all;
pub use converters::wasm::CTB_RESUME_TARGET_OP_EXPORT;
pub use converters::wasm::DC_WASM_MAILBOX_HEADER_LEN;
pub use converters::wasm::DC_WASM_MAILBOX_INPUT_LEN;
pub use converters::wasm::DC_WASM_MAILBOX_INPUT_PTR;
pub use converters::wasm::DC_WASM_MAILBOX_MOST_RECENT_NODE_ID;
pub use converters::wasm::DC_WASM_MAILBOX_OUTPUT_LEN;
pub use converters::wasm::DC_WASM_MAILBOX_OUTPUT_PTR;
pub use converters::wasm::DEFAULT_MAX_WASM_CAPABILITY_PAYLOAD_BYTES;
pub use converters::wasm::DEFAULT_MAX_WASM_INSTRUCTIONS_PER_STEP;
pub use converters::wasm::DEFAULT_MAX_WASM_MEMORY_PAGES;
pub use converters::wasm::DEFAULT_MAX_WASM_SESSION_OUTPUT_BYTES;
pub use converters::wasm::DEFAULT_MAX_WASM_STEP_OUTPUT_BYTES;
pub use converters::wasm::DEFAULT_MAX_WASM_TABLE_ELEMENTS;
pub use converters::wasm::DEFAULT_MAX_WASM_TRACE_BYTES;
pub use converters::wasm::DcWasmExecutionBackend;
pub use converters::wasm::DcWasmResourceLimits;
pub use converters::wasm::DcWasmSession;
pub use converters::wasm::DcWasmWatchdogLimits;
pub use converters::wasm::InstrumentedWasmModule;
pub use converters::wasm::SharedWasmTaskQuota;
pub use converters::wasm::SharedWasmTaskQuotaState;
pub use converters::wasm::WASM_RESOURCE_ACCOUNTING_VERSION;
pub use converters::wasm::WasmResourceInterruption;
pub use converters::wasm::WasmStartSectionTrap;
pub use converters::wasm::WasmStepOutcome;
pub use converters::wasm::WasmStepStatus;
pub use converters::wasm::instrument_wasm_module_bytes;
pub use converters::wasm::run_dc_wasm_pure_conversion;
pub use converters::wasm::run_dc_wasm_pure_conversion_with_resolver;
pub use converters::wasm::run_graph_wasm_tokens_on_dc_slice;
pub use converters::wasm::run_graph_wasm_tokens_on_dc_slice_with_quota;
pub use converters::dcal;
pub use converters::dctext;
pub use converters::dcts;
pub use converters::eite;
pub use converters::transform;
pub use converters::utf8;
pub use converters::wasm;
pub use converters::wat;
pub use converters::wat_to_dclist;
pub use converters::wat_to_dcmstring;
pub use converters::wat_to_dcmstring_with_resolver;
pub use converters::wat_to_dcstring;
pub use converters::wat_to_wasm;
pub use converters::wat_to_wasm_with_resolver;
pub use dc_mixed::DCMM_HEADER_LEN;
pub use dc_mixed::DCMM_MAGIC;
pub use dc_mixed::DCMM_UUID;
pub use dc_mixed::DCMM_UUID_V1;
pub use dc_mixed::DcMixed;
pub use dc_mixed::DcMixedChunk;
pub use dc_mixed::DcMixedError;
pub use dc_mixed::DcMixedOwned;
pub use dc_mixed::DcMstSlice;
pub use dc_mixed::DcMstr;
pub use dc_mixed::DcMstring;
pub use dc_mixed::DcmmStreamOptions;
pub use dc_mixed::dcmm_to_dcmstring;
pub use dc_mixed::dcmm_to_dcmstring_with_options;
pub use dc_mixed::dcmm1_to_dcmstring;
pub use dc_mixed::dcmm1_to_dcmstring_with_options;
pub use dc_mixed::dcmm2_to_dcmstring;
pub use dc_mixed::dcmm2_to_dcmstring_with_options;
pub use dc_mixed::dcmstring_to_dcmm;
pub use dc_mixed::dcmstring_to_dcmm1;
pub use dc_mixed::dcmstring_to_dcmm2;
pub use dc_mixed::validate_and_copy_dcmm_stream;
pub use dc_mixed::validate_and_copy_dcmm_stream_with_options;
pub use dc_mixed::validate_dcmst;
pub use dc_mixed_serde::BinaryPayload;
pub use dc_mixed_serde::DcEpochTimestamp;
pub use dc_mixed_serde::DcMixedDecode;
pub use dc_mixed_serde::DcMixedEncode;
pub use dc_mixed_serde::DcMixedFlattened;
pub use dc_mixed_serde::DcMixedNumber;
pub use dc_mixed_serde::DcProjectionContext;
pub use dc_mixed_serde::DcRawValue;
pub use dc_mixed_serde::LazyBinaryPayload;
pub use dc_mixed_serde::LosslessWithContext;
pub use dc_mixed_serde::assert_dc_document_roundtrip;
pub use dc_mixed_serde::assert_dc_roundtrip;
pub use dc_source::DcDiagnostic;
pub use dc_source::DcFieldAnnotation;
pub use dc_source::DcInspection;
pub use dc_source::DcMixedFields;
pub use dc_source::DcSource;
pub use dc_str::DcCharIndices;
pub use dc_str::DcChars;
pub use dc_str::DcStr;
pub use dc_str::validate_dctf;
pub use dc_str::validate_dcutf;
pub use dc_writer::DcBinaryReader;
pub use dc_writer::DcBinarySource;
pub use dc_writer::DcBinarySourceError;
pub use dc_writer::DcWriter;
pub use dc_writer::validate_and_write_dc_record;
pub use dcstring_impl::DcString;
pub use error::DcUtfError;
pub use kv_map::DcKvMapEncoding;
pub use navigator::BinaryPayloadRef;
pub use navigator::BootstrapKernelVersion;
pub use navigator::DEFAULT_MAX_ENCAPSULATION_METADATA_DEPTH;
pub use navigator::DEFAULT_MAX_ENCAPSULATION_PAYLOAD_BYTES;
pub use navigator::DEFAULT_MAX_PROJECTION_DEPTH;
pub use navigator::DcBinaryResolver;
pub use navigator::DcByteSpan;
pub use navigator::DcDocumentNavigator;
pub use navigator::DcEvaluatedValue;
pub use navigator::DcExpressionEvaluator;
pub use navigator::DcForgivingDefault;
pub use navigator::DcFrameHeaderInfo;
pub use navigator::DcFrameStub;
pub use navigator::DcPinProvenance;
pub use navigator::DcProjectionPolicy;
pub use navigator::DcSyntaxArena;
pub use navigator::DcSyntaxKind;
pub use navigator::DcSyntaxNode;
pub use navigator::DefaultDcExpressionEvaluator;
pub use navigator::DiagnosticAction;
pub use navigator::INLINE_BINARY_THRESHOLD;
pub use navigator::MAX_SYNTAX_EXPANSION_DEPTH;
pub use navigator::NodeId;
pub use navigator::SharedQuotaDcExpressionEvaluator;
pub use navigator::SyntaxEvalContext;
pub use navigator::SyntaxRuntimeResolver;
pub use navigator::ValueRequirement;
pub use navigator::validate_dc_mixed_strict;
pub use navigator::validate_dc_str_strict;
pub use navigator::validate_dc_tokens_strict;
pub use shared::SharedJson;
pub use shared::SharedValueContext;
pub use shared::decode_dc_identifier;
pub use shared::decode_identifier;
pub use shared::encode_dc_identifier;
pub use shared::encode_dc_identifier_to;
pub use shared::encode_identifier;
pub use shared::encode_identifier_to;

Modules§

character_description
Unified character description tool supporting Unicode, Document Characters (Dcs), Formats, and Global Graph IDs.
cli_identifiers
CLI handlers for converting between short IDs and Global Graph IDs.
converters
Converters between DcString / DcList and various text formats (DcText, Dcal, UTF-8).
dc
Constants and definitions for Document Character (Dc) data. @generated by ctb-build-support::dc_codegen from category data tables. Do not edit by hand.
dc_char
Document Character (DcChar) representation re-exported from ctb_formats_dcdata.
dc_mixed
Mixed-mode Document Character String (DcMstring, DcMstr) for the DcMixed format (.dcmm).
dc_mixed_serde
Serialization and deserialization infrastructure for DcMixed documents.
dc_number
Document Character (Dc) numeric encoding and base64 encapsulation utilities.
dc_source
Source annotations for typed interpretations of Dc strings.
dc_str
Borrowed string slice for DcTF format.
dc_writer
Direct fallible writer and binary source traits for Document Character (Dc) streams and files.
dcstring_impl
Owned string buffer for DcTF format.
error
Error types for UTF-8e-128 / DcUtf validation.
global_graph_layout
Structure of identifier allocations within the global graph database.
kv_map
Shared framing for canonical pair arrays and legacy alternating maps.
navigator
Database-syntax-driven hierarchical navigator, reusable syntax arena, and projection policies for Document Character (Dc) streams and files.
shared
Document-local lexical bindings and explicitly supplied enclosing scopes.
source_edit
Source-backed reconciliation of typed replacement fragments.
stagel3
Core StageL 3 (f656 .sl3) AST, parser, static validator, Token-Dc codec, and deterministic reference evaluator shared across ctb-formats-dcdata and ctb-formats-stagel.
stagel_dc_alloc
StageL 3 : @dc l<id> ledger auto-allocator, System-graph Token-Dc compiler, and Gate 4 .WASM boundary validator for stage_1_impls/ and impls/.
syntax
Document Character (Dc) syntax Domain Specific Language (DSL) module.

Structs§

DcChar
A single Document Character (Dc) or Unicode codepoint, represented as a 128-bit integer.
FormatLog
Integer
An integer.
LedgerNode
Single node entry in the System-block .ctbnodes ledger.
Natural
A natural (non-negative) integer.
SeedGraphIndex
Runtime index over the System-block seed graph (8589934592..=12884901887).
TrustedSystemSupervisorResolution
Verified resolution of an unpinned 1-Short-Dc System supervisor entry document against the application-bundled System-block seed graph (ctoolbox.rsrc).

Enums§

DcRole
Classification of syntactic framing and semantic roles for Document Characters.
DcShorthand
Representation of a parsed Document Character (Dc) shorthand identifier.

Traits§

DcCharExt
Extension methods for DcChar specific to document formats and serialization.
SyntaxRuleResolver
Trait providing resolution of syntax rules, named types, and script sets.

Functions§

wat_to_dc_shorthand_string
Converts WebAssembly Text Format (.wat) source into a space-separated Dc shorthand string.
wat_to_dc_shorthands
Converts WebAssembly Text Format (.wat) source into a canonical .WASM Document Character shorthand sequence (Dc 1927 "Begin WASM program" .. Dc 1928 "End WASM program").

Derive Macros§

DcMixed