Struct reproto_trans::environment::Environment [] [src]

pub struct Environment<'a, F: 'static> where
    F: Flavor
{ pub ctx: Rc<Context>, // some fields omitted }

Scoped environment for evaluating reproto IDLs.

Fields

Global context for collecting errors.

Methods

impl<'a, F: 'static> Environment<'a, F> where
    F: Flavor
[src]

Environment containing all loaded declarations.

[src]

Construct a new, language-neutral environment.

[src]

Setup a new path hook for this environment.

[src]

Configure a new environment on how to use safe packages or not.

[src]

Build the environment with the given keywords.

[src]

Set package naming policy.

[src]

Set field naming policy.

[src]

Set endpoint ident naming.

impl<'a> Environment<'a, CoreFlavor>
[src]

[src]

Build a new translator.

[src]

Translate the current environment into another.

This is the final step of the compilation, the environment is consumed by this.

[src]

Translation to simplified packages.

[src]

Translate without changing the flavor.

[src]

Import a path into the environment.

[src]

Import a source into the environment.

[src]

Import a single, structured file.

[src]

Verify all declarations.

[src]

Load the provided Source into an RpFile without registering it to the set of visited files.

Trait Implementations

impl<'e> Import for Environment<'e, CoreFlavor>
[src]

[src]

Import a package based on a package and version criteria.

impl<'a, 'e: 'a> Import for &'a mut Environment<'e, CoreFlavor>
[src]

Forward implementation for a mutable reference to the environment.

[src]

Perform the import.

Auto Trait Implementations

impl<'a, F> !Send for Environment<'a, F>

impl<'a, F> !Sync for Environment<'a, F>