tiny.zen.Document
Defined in tiny.zen.
Borrowed view of the headings held by active Storage.
API (2)
Actions
Public operations.
firstHeading: Returns the first heading, or null when the document has none.
Fields and members
Public fields and members.
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
Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |