Enum kailua_check::env::Id
[−]
[src]
pub enum Id { Local(usize, ScopedId), Global(Name), }
A globally unique name reference.
This is an expanded version of NameRef
that can be used across multiple files.
Variants
Local(usize, ScopedId)
A local name, identified with an index to a per-file scope map and a scoped identifier.
Global(Name)
A global name, simply identified with its name.
Methods
impl Id
[src]
fn from(map_index: usize, nameref: NameRef) -> Id
fn name<'a, R: Report>(&'a self, ctx: &'a Context<R>) -> &'a Name
fn scope<R: Report>(&self, ctx: &Context<R>) -> Option<Scope>
fn is_global(&self) -> bool
fn display<'a, R: Report>(&'a self, ctx: &'a Context<R>) -> IdDisplay<'a, R>
Trait Implementations
impl Clone for Id
[src]
fn clone(&self) -> Id
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more
impl Debug for Id
[src]
impl PartialEq for Id
[src]
fn eq(&self, __arg_0: &Id) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Id) -> bool
This method tests for !=
.