Skip to main content

Module util

Module util 

Source
Expand description

Various utilities for the next-trait-solver.

Structsยง

BottomUpFolder
ContainsTypeErrors
Discr
ItemBounds ๐Ÿ”’
MaxUniverse
Finds the max universe present
PlaceholderReplacer
The inverse of BoundVarReplacer: replaces placeholders with the bound vars from which they came.

Enumsยง

ItemWithBounds ๐Ÿ”’

Traitsยง

CoroutineArgsExt
FloatExt
IntegerExt
IntegerTypeExt
PrimitiveExt

Functionsยง

apply_args_to_binder
clauses_as_obligations ๐Ÿ”’
impl_super_outlives ๐Ÿ”’
sizedness_constraint_for_ty
sizedness_fast_path
upcast_choices ๐Ÿ”’
Casts a trait reference into a reference to one of its super traits; returns None if target_trait_def_id is not a supertrait.