tiny.ui.Limits
Defined in tiny.ui.
Limits is the largest count of each table a Store accepts, plus the number of identity map slots.
API (12)
Actions
Public operations.
fits:Limits.fitsreturns true when every field is at most the same field ofbound.
Fields and members
Public fields and members.
atomsclassesdeclarationsmap_slotsnodesrelationsrunssolved_rectssolved_rootsstring_bytestexts
Source
Source: lib/ui/src/tree/capacity.zig:10
zig
/// `Limits` is the largest count of each table a `Store` accepts, plus the/// number of identity map slots. The defaults size one envelope block at/// 6,267,032 bytes and the whole store at 12,992,816 bytes.pub const Limits = struct { nodes: u32 = 16_384, declarations: u32 = 131_072, classes: u32 = 65_536, texts: u32 = 8_192, runs: u32 = 16_384, relations: u32 = 2_048, atoms: u32 = 8_192, string_bytes: u32 = 2 << 20, solved_roots: u32 = 2_048, solved_rects: u32 = 16_384, map_slots: u32 = 32_768, /// `Limits.fits` returns true when every field is at most the same field of `bound`. pub fn fits(self: Limits, bound: Limits) bool { return self.nodes <= bound.nodes and self.declarations <= bound.declarations and self.classes <= bound.classes and self.texts <= bound.texts and self.runs <= bound.runs and self.relations <= bound.relations and self.atoms <= bound.atoms and self.string_bytes <= bound.string_bytes and self.solved_roots <= bound.solved_roots and self.solved_rects <= bound.solved_rects and self.map_slots <= bound.map_slots; }};Source: lib/ui/src/root.zig:30
zig
pub const Limits = tree.Limits;Also reachable as
Audit
| Definitions | 2 |
|---|---|
| Public names | 4 |
| Members | 11 |
| Version | 26.7.0 |
| Revision | daab053ee433 |