DoxigAlpha

format

Function parameters

Parameters

#
w:*Writer

Type definitions in this namespace

Types

#

Functions in this namespace

Functions

#

= 16

Values

#

Source

Implementation

#
pub fn format(p: Prefixed, w: *Writer) Writer.Error!void {
    switch (p.thread_local) {
        .default => return,
        .generaldynamic => {
            var vecs: [2][]const u8 = .{ p.prefix, "thread_local" };
            return w.writeVecAll(&vecs);
        },
        else => {
            var vecs: [4][]const u8 = .{ p.prefix, "thread_local(", @tagName(p.thread_local), ")" };
            return w.writeVecAll(&vecs);
        },
    }
}