☰
clippy_utils
1.75.0-dev
In clippy_utils::ty
Modules
type_certainty
Structs
AdtVariantInfo
Enums
EnumValue
ExprFnSig
Functions
adt_and_variant_of_res
all_predicates_of
approx_ty_size
assert_generic_args_match
can_partially_move_ty
contains_adt_constructor
contains_ty_adt_constructor_opaque
expr_sig
expr_type_is_certain
for_each_top_level_late_bound_region
get_discriminant_value
get_iterator_item_ty
get_type_diagnostic_name
has_debug_impl
has_drop
has_iter_method
implements_trait
implements_trait_with_env
implements_trait_with_env_from_iter
is_c_void
is_copy
is_interior_mut_ty
is_isize_or_usize
is_must_use_ty
is_never_like
is_non_aggregate_primitive_type
is_normalizable
is_normalizable_helper
is_recursively_primitive_type
is_type_diagnostic_item
is_type_lang_item
is_type_ref_to_diagnostic_item
is_uninit_value_valid_for_ty
is_uninit_value_valid_for_ty_fallback
make_normalized_projection
make_normalized_projection_with_regions
make_projection
match_type
needs_ordered_drop
normalize_with_regions
peel_mid_ty_refs
peel_mid_ty_refs_is_mutable
read_explicit_enum_value
same_type_and_consts
sig_for_projection
sig_from_bounds
ty_is_fn_once_param
ty_sig
type_diagnostic_name
type_is_unsafe_function
walk_ptrs_hir_ty
walk_ptrs_ty_depth
?
Function
clippy_utils
::
ty
::
is_must_use_ty
source
·
[
−
]
pub fn is_must_use_ty<'tcx>(cx: &
LateContext
<'tcx>, ty:
Ty
<'tcx>) ->
bool