Skip to documentation
SLOP

tiny.zen.Document

Reference tiny.zen Document

Defined in tiny.zen.

Borrowed view of the headings held by active Storage.

API (2)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callstiny.zenDocument
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/zen/src/document/model.zig:14

zig
/// Borrowed view of the headings held by active `Storage`.pub const Document = struct {    headings: []const Heading = &.{},    /// Returns the first heading, or null when the document has none.    pub fn firstHeading(self: Document) ?Heading {        if (self.headings.len == 0) return null;        return self.headings[0];    }};

Source: lib/zen/src/root.zig:178

zig
/// Borrowed heading view held by active `HeadingStorage`.pub const Document = document.Document;

Also reachable as

document.Document.

Audit

Definitions2
Public names4
Members1
Version26.7.0
Revisiondaab053ee433