Struct ra_ap_hir_def::keys::AstPtrPolicy[][src]

pub struct AstPtrPolicy<AST, ID> { /* fields omitted */ }
Expand description

XXX: AST Nodes and SyntaxNodes have identity equality semantics: nodes are equal if they point to exactly the same object.

In general, we do not guarantee that we have exactly one instance of a syntax tree for each file. We probably should add such guarantee, but, for the time being, we will use identity-less AstPtr comparison.

Trait Implementations

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.