Trait rustc_ast::ast_traits::HasTokens

source ·
pub trait HasTokens {
    // Required methods
    fn tokens(&self) -> Option<&LazyAttrTokenStream>;
    fn tokens_mut(&mut self) -> Option<&mut Option<LazyAttrTokenStream>>;
}
Expand description

A trait for AST nodes having (or not having) collected tokens.

Required Methods§

Implementations on Foreign Types§

source§

impl<T: HasTokens> HasTokens for Option<T>

Implementors§