Struct reproto_backend::Environment [] [src]

pub struct Environment {
    pub types: LinkedHashMap<RpTypeId, Loc<RpRegistered>>,
    pub decls: LinkedHashMap<RpTypeId, Rc<Loc<RpDecl>>>,
    pub used: LinkedHashMap<(RpVersionedPackage, String), RpVersionedPackage>,
    // some fields omitted
}

Fields

Methods

impl Environment
[src]

Environment containing all loaded declarations.

Check if source is assignable to target.

Lookup registered constant.

Convert instance arguments to the known registered type of the instance, and a map containing the arguments being instantiated.

Lookup the declaration matching the custom type.

Load the provided Object into a RpFile.

Process use declarations.

Process and merge declarations.

Declarations are considered the same if they have the same type_id. The same declarations are merged using Merge.