[][src]Struct syntax::util::node_count::NodeCounter

pub struct NodeCounter {
    pub count: usize,
}

Fields

count: usize

Methods

impl NodeCounter
[src]

pub fn new() -> NodeCounter
[src]

Trait Implementations

impl<'ast> Visitor<'ast> for NodeCounter
[src]

fn visit_name(&mut self, _span: Span, _name: Name)
[src]

fn visit_global_asm(&mut self, ga: &'ast GlobalAsm)
[src]

fn visit_anon_const(&mut self, c: &'ast AnonConst)
[src]

fn visit_expr_post(&mut self, _ex: &'ast Expr)
[src]

fn visit_where_predicate(&mut self, p: &'ast WherePredicate)
[src]

fn visit_label(&mut self, label: &'ast Label)
[src]

fn visit_mac_def(&mut self, _mac: &'ast MacroDef, _id: NodeId)
[src]

fn visit_path_segment(
    &mut self,
    path_span: Span,
    path_segment: &'ast PathSegment
)
[src]

fn visit_generic_arg(&mut self, generic_arg: &'ast GenericArg)
[src]

fn visit_tt(&mut self, tt: TokenTree)
[src]

fn visit_tts(&mut self, tts: TokenStream)
[src]

fn visit_token(&mut self, _t: Token)
[src]

fn visit_vis(&mut self, vis: &'ast Visibility)
[src]

fn visit_fn_ret_ty(&mut self, ret_ty: &'ast FunctionRetTy)
[src]

Auto Trait Implementations

impl Send for NodeCounter

impl Sync for NodeCounter

Blanket Implementations

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> From for T
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<E> SpecializationError for E
[src]

impl<T> Erased for T
[src]

impl<T> Send for T where
    T: ?Sized
[src]

impl<T> Sync for T where
    T: ?Sized
[src]

impl<T> Erased for T