JavaScript | PHP
Determine whether a decl should be a U8ClampedArray.
U8ClampedArray
Usage:
const std = @import("std"); pub const declaration: []const u8 = "hello"; const module = @This(); pub const @"meta(zigar)" = struct { pub fn isDeclClampedArray(comptime T: type, comptime name: std.meta.DeclEnum(T)) bool { return T == module and name == .declaration; } };
import { declaration } from './meta-type-clamped-array-example-1.zig'; console.log(declaration);
Uint8ClampedArray(5) [ 104, 101, 108, 108, 111 ]
Arguments:
T
type
name
std.meta.DeclEnum(T)
Meta types | Clamped array
There was an error while loading. Please reload this page.