SLOP
tiny.gpu.DTypeSet
Reference › tiny.gpu › DTypeSet
Defined in contract.
API (5)
Actions
Public operations.
Fields and members
Public fields and members.
Static calls · unresolved targets: unknown · external targets: unknown.
Source
Source: lib/gpu/src/contract.zig:576
1pub const DTypeSet = struct {2 bits: u64 = 0,34 pub fn init(values: []const DType) DTypeSet {5 var set: DTypeSet = .{};6 for (values) |value| set.insert(value);7 return set;8 }910 pub fn insert(self: *DTypeSet, value: DType) void {11 self.bits |= bitForDType(value);12 }1314 pub fn contains(self: DTypeSet, value: DType) bool {15 return (self.bits & bitForDType(value)) != 0;16 }1718 pub fn containsAll(self: DTypeSet, required: DTypeSet) bool {19 return (self.bits & required.bits) == required.bits;20 }21};
Source: lib/gpu/src/root.zig:75
1pub const DTypeSet = contract.DTypeSet;
Static calls · unresolved targets: 0 · external targets: 0.
Static calls · unresolved targets: 0 · external targets: 0.
Static calls · unresolved targets: 0 · external targets: 0.
Static calls · unresolved targets: 0 · external targets: 0.
Audit
| Definitions | 5 |
|---|
| Public names | 10 |
|---|
| Members | 1 |
|---|
| Version | 26.7.0 |
|---|
| Revision | daab053ee433 |
|---|