Skip to main content

Module fn_info

Module fn_info 

Source

Re-exports§

pub use super::mir_scan::check_safety;
pub use super::name::get_cleaned_def_path_name;

Structs§

AdtInfo
FnInfo

Enums§

FnKind

Functions§

append_fn_with_types
assoc_fns_of_self 🔒
Associated function DefIds (inherent impls only) on the struct that def_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 self methods (mutators) on the same struct as src_def_id.
get_all_std_fns_by_rustc_public
get_cons
get_mutated_fields
Return field indices that a &mut self method writes to.
get_muts
Find &mut self methods (mutators) on the same struct as def_id.
get_ptr_deref_dummy_def_id
get_type
is_externally_reachable
is_mut_self_method 🔒
Returns true when def_id is a method taking &mut self (a mutator).
is_self_ty 🔒
Returns true when ty denotes Self: either the generic Self param (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 bare Self.
self_adt_def 🔒
The AdtDef that def_id’s impl block is implemented for, if any.