Skip to main content

AstIdLoc

Trait AstIdLoc 

Source
pub trait AstIdLoc {
    type Container;
    type Ast: AstNode;

    // Required methods
    fn ast_id(&self) -> AstId<Self::Ast>;
    fn container(&self) -> Self::Container;
}

Required Associated Types§

Source

type Container

Source

type Ast: AstNode

Required Methods§

Source

fn ast_id(&self) -> AstId<Self::Ast>

Source

fn container(&self) -> Self::Container

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§