tiny.zen.renderAsciiOwned
Defined in tiny.zen.
Returns an owned ASCII result from a borrowed diagram document.
Source
Source: lib/zen/src/diagram/ascii/render.zig:53
zig
/// Returns an owned ASCII result from a borrowed diagram document.pub fn renderOwned( allocator: std.mem.Allocator, document: *const spec.Document, options: Options,) !Rendered { const plan = try RenderPlan.inspect(document, options); var storage = try RenderStorage.init(allocator, plan.exactLimits()); errdefer storage.deinit(allocator); storage.activate(); const output = try render(&storage, document, options); return .{ .storage = storage, .output = output, };}Source: lib/zen/src/root.zig:83
zig
/// Returns an owned ASCII render of an existing diagram document.pub const renderAsciiOwned = diagram.renderAsciiOwned;Also reachable as
diagram.ascii.renderOwned, diagram.renderAsciiOwned.
Audit
| Definitions | 1 |
|---|---|
| Public names | 3 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |