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

pub struct Context<T> {
    pub type_translator: T,
    pub types: Rc<LinkedHashMap<RpName, RpReg>>,
    pub decls: RefCell<LinkedHashMap<RpName, 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: TypeTranslator<Source = CoreFlavor>, 
[src]

[src]

Indicate that the given name has been visited.

[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.

Auto Trait Implementations

impl<T> !Send for Context<T>

impl<T> !Sync for Context<T>