[][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]

fn visit_fn_header(&mut self, _header: &'ast FnHeader)[src]

Auto Trait Implementations

impl Send for NodeCounter

impl Sync for NodeCounter

Blanket Implementations

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

The type returned in the event of a conversion error.

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

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

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

impl<E> SpecializationError for E[src]

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

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

impl<T> Erased for T[src]