Crate assembly_util
source ·Expand description
Utility methods and traits used throughout assembly.
Macros
Implement the
PathTypeMarker
trait for a given marker-type struct. This
mainly simplifies the creation of a display-string for the type.Structs
Wrapper for adding a Key-Value pair to a Map using InsertUniqueExt.
A path, in valid utf-8, which carries a marker for what kind of path it is.
Traits
Trait for consistently providing access to the duplicated key, and both the
previously- and newly-inserted values for any Map insert (BTreeMap, HashMap,
etc.).
Extension trait for inserting into a collection, while validating that no
duplicate values are being inserted.
Extension trait for inserting into a collection, while validating that no
duplicate values (or keys, in the case of a Map) are being inserted.
A base trait for TypePath’s marker traits.
Functions
Deserialize an instance of type T from an IO stream of JSON5.
Helper fn to insert into an empty Option, or return an Error.