Enum kailua_syntax::ast::NameRef
[−]
[src]
pub enum NameRef { Local(ScopedId), Global(Name), }
A resolved reference to the name, either local or global.
Variants
Local(ScopedId)
A local name, represented by a scoped identifier bound to the scope map.
A (portion of) Chunk
is required for mapping.
Global(Name)
A global name, represented by a name.
Trait Implementations
impl Clone for NameRef
[src]
fn clone(&self) -> NameRef
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 PartialEq for NameRef
[src]
fn eq(&self, __arg_0: &NameRef) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &NameRef) -> bool
This method tests for !=
.
impl Eq for NameRef
[src]
impl Hash for NameRef
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
H: Hasher,
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
(global).<i>Name</i>
_
Note that kailua_test
will automatically convert it to the more readable form
for local names:
.<i>Name</i>
$scope