Skip to documentation
SLOP

tiny.css.Placement

Reference tiny.css Placement

Defined in sheet.

The typed slices one acquired block resolves into.

API (16)

Actions

Public operations.

Fields and members

Public fields and members.

No direct callersNo direct callssheetPlacement
Static calls · unresolved targets: unknown · external targets: unknown.

Source

Source: lib/css/src/sheet.zig:186

zig
/// The typed slices one acquired block resolves into.pub const Placement = struct {    capacity: Capacity = .{},    rules: []Rule = &.{},    selectors: []selector.Selector = &.{},    compounds: []selector.Compound = &.{},    combinators: []selector.Combinator = &.{},    classes: []u32 = &.{},    nths: []selector.nth.Nth = &.{},    atoms: []atom.Record = &.{},    atom_slots: []u32 = &.{},    atom_bytes: []u8 = &.{},    declarations: []Declaration = &.{},    lowered: []value.Declaration = &.{},    customs: []cascade.Custom = &.{},    diagnostics: [][]const u8 = &.{},    pub fn init(bytes: []u8, capacity: Capacity) Placement {        std.debug.assert(bytes.len == capacity.total_bytes);        var out = Placement{ .capacity = capacity };        inline for (arrays, 0..) |entry, index| {            @field(out, entry.name) = typedSlice(                entry.Element,                bytes,                capacity.offsets[index],                @field(capacity.limits, entry.name),            );        }        return out;    }    pub fn admits(self: Placement, limits: Limits) bool {        return limits.fits(self.capacity.limits);    }    fn release(self: *Placement) void {        inline for (arrays) |entry| @field(self, entry.name) = &.{};    }};

Source: lib/css/src/root.zig:52

zig
pub const Placement = sheet.Placement;
Called byCallsNo direct callsStorageadmitsPlacementadmits
Static calls · unresolved targets: 0 · external targets: 1.
Called byCallsStorageinitprivate sourcelib.css.src.sheettypedSlicePlacementinit
Static calls · unresolved targets: 0 · external targets: 0.

Audit

Definitions3
Public names6
Members14
Version26.7.0
Revisiondaab053ee433