Module CCHashTrie.Transient
Transient Identifiers
type tIdentifiers for transient modifications. A transient modification is uniquely identified by a
Transient.t. OnceTransient.freeze ris called,rcannot be used to modify the structure again.
val create : unit -> tCreate a new, active ID.
val frozen : t -> boolfrozen ireturnstrueiffreeze iwas called before. In this case, the ID cannot be used for modifications again.
val active : t -> boolactive iisnot (frozen i).
val freeze : t -> unitfreeze imakesiunusable for new modifications. The values created withiwill now be immutable.
val with_ : (t -> 'a) -> 'awith_ fcreates a transient IDi, callsf i, freezes the IDiand returns the result off i.