rustc_ast::ast_traits

Trait 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§