Trait glsl_lang_lexer::TypeTablePolicy

source ·
pub trait TypeTablePolicy: Debug {
    // Required method
    fn promote_to_type_name(
        &self,
        name: &Identifier,
        ctx: IdentifierContext,
    ) -> bool;
}
Expand description

A policy to dictate which identifiers should be seen as type names or not

Required Methods§

source

fn promote_to_type_name( &self, name: &Identifier, ctx: IdentifierContext, ) -> bool

Return true if the given identifier (in its context) should now be considered a type name or not.

Implementors§