Struct stack_graphs::graph::Symbol[][src]

#[repr(C)]
pub struct Symbol { /* fields omitted */ }
Expand description

A name that we are trying to resolve using stack graphs.

This typically represents a portion of an identifier as it appears in the source language. It can also represent some other “operation” that can occur in source code, and which needs to be modeled in a stack graph — for instance, many languages will use a “fake” symbol named . to represent member access.

We deduplicate Symbol instances in a StackGraph — that is, we ensure that there are never multiple Symbol instances with the same content. That means that you can compare handles to symbols using simple equality, without having to dereference into the StackGraph arena.

Trait Implementations

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.