Expand description
Miscellaneous type-system utilities that are too small to deserve their own modules.
Structsยง
Enumsยง
- Check
Regions - Used as an input to
TyCtxt::uses_unique_generic_params
. - NotUnique
Param
Traitsยง
Functionsยง
- fold_
list - Does the equivalent of
- intrinsic_
raw - Determines whether an item is an intrinsic (which may be via Abi or via the
rustc_intrinsic
attribute). - is_
doc_ ๐hidden - Determines whether an item is directly annotated with
doc(hidden)
. - is_
doc_ notable_ trait - Determines whether an item is annotated with
doc(notable_trait)
. - needs_
drop_ components - Returns a list of types such that the given type needs drop if and only if
any of the returned types need drop. Returns
Err(AlwaysRequiresDrop)
if this type always needs drop. - needs_
drop_ components_ with_ async - Returns a list of types such that the given type needs drop if and only if
any of the returned types need drop. Returns
Err(AlwaysRequiresDrop)
if this type always needs drop. - provide
- reveal_
opaque_ types_ in_ bounds - Reveals all opaque types in the given value, replacing them with their underlying types.
- try_
fold_ list - Does the equivalent of