Struct llhd::entity::EntityContext
[−]
[src]
pub struct EntityContext<'tctx> { /* fields omitted */ }
Methods
impl<'tctx> EntityContext<'tctx>
[src]
fn new(
module: &'tctx ModuleContext,
entity: &'tctx Entity
) -> EntityContext<'tctx>
[src]
module: &'tctx ModuleContext,
entity: &'tctx Entity
) -> EntityContext<'tctx>
Trait Implementations
impl<'tctx> Context for EntityContext<'tctx>
[src]
fn parent(&self) -> Option<&Context>
[src]
Get the parent context to which value resolution shall escalate. May return None
for the context at the top of the hierarchy. Read more
fn try_value(&self, value: &ValueRef) -> Option<&Value>
[src]
Try to resolve a ValueRef
to an actual &Value
reference. May fail if the value is not known to the context. Read more
fn value(&self, value: &ValueRef) -> &Value
[src]
Resolve a ValueRef
to an actual &Value
reference. Panics if the value is unknown to this context and its parents. Read more
fn ty(&self, value: &ValueRef) -> Type
[src]
Get the type of a value.
fn name(&self, value: &ValueRef) -> Option<&str>
[src]
Get the name of a value.