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

The value did not come from an annotated location.

The value was read from a file.

The value was constructed by a macro.

Fields of Macro

The location at which the macro was defined.

The name of the macro.

Trait Implementations

impl Clone for Location
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for Location
[src]

[src]

Formats the value using the given formatter.

impl Finalize for Location
[src]

[src]

impl PartialEq for Location
[src]

[src]

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

[src]

This method tests for !=.

impl Trace for Location
[src]

[src]

Marks all contained Gcs.

[src]

Increments the root-count of all contained Gcs.

[src]

Decrements the root-count of all contained Gcs.

[src]

Runs Finalize::finalize() on this object and all contained subobjects Read more

impl Drop for Location
[src]

[src]

Executes the destructor for this type. Read more

impl Default for Location
[src]

[src]

Returns the "default value" for a type. Read more