Re-exportsΒ§
use rustc_hir::Safety;πuse rustc_hir::def::DefKind;πuse rustc_hir::def_id::DefId;πuse rustc_middle::mir::ProjectionElem;πuse rustc_middle::mir::StatementKind;πuse rustc_middle::ty;πuse rustc_middle::ty::AssocKind;πuse rustc_middle::ty::Mutability;πuse rustc_middle::ty::TyCtxt;πuse rustc_middle::ty::TyKind;πuse rustc_public::CrateDef;πuse rustc_public::rustc_internal;πuse rustc_span::kw;πuse rustc_span::sym;πuse std::collections::HashSet;πuse std::fmt::Debug;πuse std::fmt::Debug;πuse std::hash::Hash;πuse std::hash::Hash;πuse syn::Expr;πpub use super::mir_scan::get_fn_safety;
StructsΒ§
EnumsΒ§
FunctionsΒ§
- append_
fn_ with_ types - assoc_
fns_ πof_ self - Associated function
DefIds (inherent impls only) on the struct thatdef_idβs impl block is implemented for. - check_
visibility - get_
adt_ def_ id_ by_ adt_ method - get_
adt_ via_ method - get_
all_ mutable_ methods - Find
&mut selfmethods (mutators) on the same struct assrc_def_id. - get_
all_ std_ fns_ by_ rustc_ public - get_
cons - get_
mutated_ fields - Return field indices that a
&mut selfmethod writes to. - get_
muts - Find
&mut selfmethods (mutators) on the same struct asdef_id. - get_
ptr_ deref_ dummy_ def_ id - get_
type - is_
externally_ reachable - is_
mut_ πself_ method - Returns true when
def_idis a method taking&mut self(a mutator). - is_
self_ πty - Returns true when
tydenotesSelf: either the genericSelfparam (ty.is_param(0)) or a type equal to the implβs self type. - parse_
expr_ into_ number - parse expr into number.
- public_
field_ πindices - returns_
wrapped_ self - Returns true when the function is a βwrappedβ constructor that returns
Option<Self>/Result<Self, _>rather than a bareSelf. - self_
adt_ πdef - The
AdtDefthatdef_idβs impl block is implemented for, if any.