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
impl<AST, ID> RefUnwindSafe for AstPtrPolicy<AST, ID> where
AST: RefUnwindSafe,
ID: RefUnwindSafe,
impl<AST, ID> Send for AstPtrPolicy<AST, ID> where
AST: Send,
ID: Send,
impl<AST, ID> Sync for AstPtrPolicy<AST, ID> where
AST: Sync,
ID: Sync,
impl<AST, ID> Unpin for AstPtrPolicy<AST, ID> where
AST: Unpin,
ID: Unpin,
impl<AST, ID> UnwindSafe for AstPtrPolicy<AST, ID> where
AST: UnwindSafe,
ID: UnwindSafe,