pub type AllocState = Tree;Aliased Type§
pub struct AllocState {
pub(super) tag_mapping: UniKeyMap<BorTag>,
pub(super) nodes: UniValMap<Node>,
pub(super) locations: DedupRangeMap<LocationTree>,
pub(super) root: UniIndex,
}Fields§
§tag_mapping: UniKeyMap<BorTag>Mapping from tags to keys. The key obtained can then be used in
any of the UniValMap relative to this allocation, i.e.
nodes, LocationTree::perms and LocationTree::wildcard_accesses
of the same Tree.
The parent-child relationship in Node is encoded in terms of these same
keys, so traversing the entire tree needs exactly one access to
tag_mapping.
nodes: UniValMap<Node>All nodes of this tree.
locations: DedupRangeMap<LocationTree>Associates with each location its state and wildcard access tracking.
root: UniIndexThe index of the root node.
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 112 bytes