forall 'k.
exposed struct Domain! {
tag: Exclusive!['k],
arena: Arena!['k],
}
An arena with the one capability for its domain: the context for code that reads, writes and allocates there (Access, Allocate), and reads text of it (ReadBytes).
Methods
method newsource
fn new(seed: Seed) -> exists 'k. Domain!['k] { ... }
A fresh, empty arena under a brand of its own, whose maps hash their keys under seed.
method destroysource
fn destroy(self) { ... }
Frees everything in the arena; nothing of its domain can be read after.
Instances
instance Access[Domain!['k] -> 'k, Arena!['k]]source
forall 'k.
instance Access[Domain!['k] -> 'k, Arena!['k]] { ... }
In alloc::arena.
A domain lends its capability, with its arena as the rest.
instance Allocate[Domain!['k] -> 'k, ()]source
forall 'k.
instance Allocate[Domain!['k] -> 'k, ()] { ... }
In alloc::arena.
A domain lends its arena with its capability.
instance ReadBytes[Domain!['k], Str['k]]source
forall 'k.
instance ReadBytes[Domain!['k], Str['k]] { ... }
In alloc::arena.
Text of a domain is read through the domain itself, which lends its capability to read it.
instance HashIn[ArenaVec[T, 'k], Domain!['k]]source
forall T, 'k where Copy[T], Sized[T], HashIn[T, Domain!['k]].
instance HashIn[ArenaVec[T, 'k], Domain!['k]] { ... }
In alloc::collections::arena_vec.
A vec as a key, hashed and compared element by element under the domain's context.