Struct reproto_core::translator::Context [] [src]

pub struct Context<T> where
    T: FlavorTranslator<Source = CoreFlavor>, 
{ pub flavor: T, pub types: Rc<LinkedHashMap<RpName<T::Source>, Loc<RpReg>>>, pub decls: Option<RefCell<LinkedHashMap<RpName<T::Source>, RpReg>>>, }

Context used when translating.

Fields

Type used to translate types.

Registered declarations of the source type.

Cached and translated registered declarations.

Trait Implementations

impl<T> Translator for Context<T> where
    T: FlavorTranslator<Source = CoreFlavor>, 
[src]

[src]

Indicate that the given name has been visited.

[src]

Translate the given package from one flavor to another.

[src]

Translate the given type from one flavor to another.

[src]

Translate the given field from one flavor to another.

[src]

Translate the given endpoint from one flavor to another.

[src]

Translate a local declaration name.

[src]

Translate enum type.

Auto Trait Implementations

impl<T> !Send for Context<T>

impl<T> !Sync for Context<T>