[−][src]Struct rustc_ap_rustc_ast_passes::node_count::NodeCounter
Fields
count: usize
Methods
impl NodeCounter
[src]
pub fn new() -> NodeCounter
[src]
Trait Implementations
impl<'ast> Visitor<'ast> for NodeCounter
[src]
fn visit_ident(&mut self, ident: Ident)
[src]
fn visit_mod(&mut self, m: &Mod, _s: Span, _a: &[Attribute], _n: NodeId)
[src]
fn visit_foreign_item(&mut self, i: &ForeignItem)
[src]
fn visit_item(&mut self, i: &Item)
[src]
fn visit_local(&mut self, l: &Local)
[src]
fn visit_block(&mut self, b: &Block)
[src]
fn visit_stmt(&mut self, s: &Stmt)
[src]
fn visit_arm(&mut self, a: &Arm)
[src]
fn visit_pat(&mut self, p: &Pat)
[src]
fn visit_expr(&mut self, ex: &Expr)
[src]
fn visit_ty(&mut self, t: &Ty)
[src]
fn visit_generic_param(&mut self, param: &GenericParam)
[src]
fn visit_generics(&mut self, g: &Generics)
[src]
fn visit_fn(&mut self, fk: FnKind, s: Span, _: NodeId)
[src]
fn visit_assoc_item(&mut self, ti: &AssocItem, ctxt: AssocCtxt)
[src]
fn visit_trait_ref(&mut self, t: &TraitRef)
[src]
fn visit_param_bound(&mut self, bounds: &GenericBound)
[src]
fn visit_poly_trait_ref(&mut self, t: &PolyTraitRef, m: &TraitBoundModifier)
[src]
fn visit_variant_data(&mut self, s: &VariantData)
[src]
fn visit_struct_field(&mut self, s: &StructField)
[src]
fn visit_enum_def(
&mut self,
enum_definition: &EnumDef,
generics: &Generics,
item_id: NodeId,
_: Span
)
[src]
&mut self,
enum_definition: &EnumDef,
generics: &Generics,
item_id: NodeId,
_: Span
)
fn visit_variant(&mut self, v: &Variant)
[src]
fn visit_lifetime(&mut self, lifetime: &Lifetime)
[src]
fn visit_mac(&mut self, _mac: &MacCall)
[src]
fn visit_path(&mut self, path: &Path, _id: NodeId)
[src]
fn visit_use_tree(&mut self, use_tree: &UseTree, id: NodeId, _nested: bool)
[src]
fn visit_generic_args(&mut self, path_span: Span, generic_args: &GenericArgs)
[src]
fn visit_assoc_ty_constraint(&mut self, constraint: &AssocTyConstraint)
[src]
fn visit_attribute(&mut self, _attr: &Attribute)
[src]
fn visit_name(&mut self, _span: Span, _name: Symbol)
[src]
fn visit_global_asm(&mut self, ga: &'ast GlobalAsm)
[src]
fn visit_param(&mut self, param: &'ast Param)
[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]
&mut self,
path_span: Span,
path_segment: &'ast PathSegment
)
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 Spanned<VisibilityKind>)
[src]
fn visit_fn_ret_ty(&mut self, ret_ty: &'ast FnRetTy)
[src]
fn visit_fn_header(&mut self, _header: &'ast FnHeader)
[src]
fn visit_field(&mut self, f: &'ast Field)
[src]
fn visit_field_pattern(&mut self, fp: &'ast FieldPat)
[src]
Auto Trait Implementations
impl RefUnwindSafe for NodeCounter
impl Send for NodeCounter
impl Sync for NodeCounter
impl Unpin for NodeCounter
impl UnwindSafe for NodeCounter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Erased for T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> MaybeResult<T> for T
[src]
type Error = !
fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T
[src]
fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>
[src]
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<E> SpecializationError for E
[src]
default fn not_found<S, T>(
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
[src]
trait_name: &'static str,
method_name: &'static str
) -> E where
T: ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,