tiny.zen.AsciiRendered
Defined in tiny.zen.
Owns one ASCII result and its bounded backing region.
API (4)
Actions
Public operations.
deinit: Releases the result with the allocator passed to rendering.status: Reports final, high-water, and rejected render demand.
Fields and members
Public fields and members.
Source
Source: lib/zen/src/diagram/ascii/render.zig:21
zig
/// Owns one ASCII result and its bounded backing region.pub const Rendered = struct { storage: RenderStorage, output: []u8, /// Releases the result with the allocator passed to rendering. pub fn deinit(self: *Rendered, allocator: std.mem.Allocator) void { self.storage.reset(); self.storage.deinit(allocator); self.* = undefined; } /// Reports final, high-water, and rejected render demand. pub fn status(self: *const Rendered) RenderStatus { return self.storage.status(); }};Source: lib/zen/src/root.zig:79
zig
/// Owns ASCII output and storage; release it with `deinit` and the same allocator.pub const AsciiRendered = diagram.AsciiRendered;Also reachable as
diagram.AsciiRendered, diagram.ascii.Rendered.
Audit
| Definitions | 3 |
|---|---|
| Public names | 9 |
| Members | 2 |
| Version | 26.7.0 |
| Revision | daab053ee433 |