Enum oftlisp::Location
[−]
[src]
pub enum Location { None, Source(SourceLocation), Macro { macro_location: Gc<Location>, macro_name: Symbol, }, }
The location a Value
originated from. See
WithLocation
.
Variants
None
The value did not come from an annotated location.
Source(SourceLocation)
The value was read from a file.
Macro
The value was constructed by a macro.
Fields of Macro
macro_location: Gc<Location> | The location at which the macro was defined. |
macro_name: Symbol | The name of the macro. |
Trait Implementations
impl Clone for Location
[src]
fn clone(&self) -> Location
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for Location
[src]
impl Finalize for Location
[src]
impl PartialEq for Location
[src]
fn eq(&self, __arg_0: &Location) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Location) -> bool
[src]
This method tests for !=
.
impl Trace for Location
[src]
unsafe fn trace(&self)
[src]
Marks all contained Gc
s.
unsafe fn root(&self)
[src]
Increments the root-count of all contained Gc
s.
unsafe fn unroot(&self)
[src]
Decrements the root-count of all contained Gc
s.
fn finalize_glue(&self)
[src]
Runs Finalize::finalize() on this object and all contained subobjects Read more