Module mono

Module mono 

Source

Structsยง

Mono
MonoSet

Staticsยง

MAX_STEP_SET_SIZE ๐Ÿ”’

Functionsยง

add_transform_tys
eliminate_infer_var
get_impls
get_mono_set ๐Ÿ”’
get_unbound_generic_candidates
if type parameter is unbound, e.g., T in fn foo<T>(), we use some predefined types to substitute it
is_args_fit_trait_bound ๐Ÿ”’
is_fn_solvable ๐Ÿ”’
is_special_std_ty ๐Ÿ”’
resolve_mono_apis
solve_unbound_type_generics ๐Ÿ”’
unify_trait ๐Ÿ”’
only handle the case that rhs does not have any infer types e.g., <T as Into<U>> == <Foo as Into<Bar>> => Some(T=Foo, U=Bar))
unify_ty ๐Ÿ”’
try to unfiy lhs = rhs, e.g., try_unify(Vec, Vec, โ€ฆ) = Some(i32) try_unify(Vec, i32, โ€ฆ) = None