Struct reproto_trans::translated::Translated
[−]
[src]
pub struct Translated<F: 'static> where
F: Flavor, { /* fields omitted */ }
An environment that has been translated into a target environment.
Methods
impl<F: 'static> Translated<F> where
F: Flavor,
[src]
F: Flavor,
pub fn new(
decls: LinkedHashMap<RpName<F>, RpReg>,
files: BTreeMap<F::Package, RpFile<F>>
) -> Self
[src]
decls: LinkedHashMap<RpName<F>, RpReg>,
files: BTreeMap<F::Package, RpFile<F>>
) -> Self
pub fn lookup<'a>(&'a self, name: &RpName<F>) -> Result<&'a RpReg>
[src]
Lookup the declaration matching the given name.
Returns the registered reference, if present.
ⓘImportant traits for ForEachFile<'a, F>pub fn for_each_file(&self) -> ForEachFile<F>
[src]
ⓘImportant traits for ForEachFile<'a, F>
Iterate over all files.
ⓘImportant traits for ToplevelDeclIter<'a, F>pub fn toplevel_decl_iter(&self) -> ToplevelDeclIter<F>
[src]
ⓘImportant traits for ToplevelDeclIter<'a, F>
Iterate over top level declarations of all registered objects.
ⓘImportant traits for DeclIter<'a, F>pub fn decl_iter(&self) -> DeclIter<F>
[src]
ⓘImportant traits for DeclIter<'a, F>
Walks the entire tree of declarations recursively of all registered objects.
Trait Implementations
Auto Trait Implementations
impl<F> Send for Translated<F> where
<F as Flavor>::Endpoint: Send,
<F as Flavor>::EnumType: Send,
<F as Flavor>::Field: Send,
<F as Flavor>::Name: Send,
<F as Flavor>::Package: Send,
<F as Flavor>::Endpoint: Send,
<F as Flavor>::EnumType: Send,
<F as Flavor>::Field: Send,
<F as Flavor>::Name: Send,
<F as Flavor>::Package: Send,
impl<F> Sync for Translated<F> where
<F as Flavor>::Endpoint: Sync,
<F as Flavor>::EnumType: Sync,
<F as Flavor>::Field: Sync,
<F as Flavor>::Name: Sync,
<F as Flavor>::Package: Sync,
<F as Flavor>::Endpoint: Sync,
<F as Flavor>::EnumType: Sync,
<F as Flavor>::Field: Sync,
<F as Flavor>::Name: Sync,
<F as Flavor>::Package: Sync,