Enum kailua_syntax::ast::NameRef [] [src]

pub enum NameRef {
    Local(ScopedId),
    Global(Name),
}

A resolved reference to the name, either local or global.

Variants

A local name, represented by a scoped identifier bound to the scope map. A (portion of) Chunk is required for mapping.

A global name, represented by a name.

Trait Implementations

impl Clone for NameRef
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for NameRef
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for NameRef
[src]

impl Hash for NameRef
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl Debug for NameRef
[src]

In the debugging output the name reference is denoted either <id> (local) or <i>Name</i>_ (global).

Note that kailua_test will automatically convert it to the more readable form for local names: <i>Name</i>$scope.

Formats the value using the given formatter.