Skip to documentation
SLOP

tiny.zen.renderAsciiOwned

Reference tiny.zen renderAsciiOwned

Defined in tiny.zen.

Returns an owned ASCII result from a borrowed diagram document.

Called byCallstiny.zenrenderAsciitiny.zenrenderAsciiDocumenttiny.zenrenderAsciiOwned
Static calls · unresolved targets: 4 · external targets: 1.

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

Definitions1
Public names3
Members0
Version26.7.0
Revisiondaab053ee433