tiny.zen.document
Defined in tiny.zen.
API (12)
Types and contracts
Public types and contracts.
CapacityCapacityErrorDocument: Borrowed view of the headings held by activeStorage.Error: All heading inspection failures, including checked-capacity overflow.Exhaustion: Rejections produced before heading storage is acquired or changed.Heading: One source heading copied into caller-owned storage.Limits: Maximum heading descriptors and copied text and ID bytes.Plan: Exact storage demand measured from one source without allocation.Status: Observable capacity, current demand, high-water demand, and rejections.Storage: One reusable aligned region for an inspected Markdown document.
Values and defaults
Public values and defaults.
default_capacitydefault_limits: General-purpose limits for convenience Markdown rendering.
Source
Source: lib/zen/src/document/root.zig
zig
const capacity_mod = @import("capacity.zig");const model = @import("model.zig");const plan_mod = @import("plan.zig");const storage_mod = @import("storage.zig");pub const Heading = model.Heading;pub const Document = model.Document;pub const Limits = plan_mod.Limits;pub const default_limits = plan_mod.default_limits;pub const Plan = plan_mod.Plan;pub const Capacity = capacity_mod.Capacity;pub const CapacityError = capacity_mod.DeriveError;pub const default_capacity = Capacity.derive(default_limits) catch unreachable;pub const Storage = storage_mod.Storage;pub const Status = storage_mod.Status;pub const Exhaustion = model.Exhaustion;pub const Error = model.Error;Source: lib/zen/src/root.zig:19
zig
/// Bounded heading plans, storage, and borrowed document views.pub const document = @import("document/root.zig");Audit
| Definitions | 1 |
|---|---|
| Public names | 1 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |