Skip to main content

def_id_of_type_cached

Function def_id_of_type_cached 

Source
fn def_id_of_type_cached<'a>(
    ty: Ty<'a>,
    visited: &mut SsoHashSet<Ty<'a>>,
) -> Option<DefId>
Expand description

Gets a DefId associated with a type

Visited set is needed to avoid full iteration over deeply nested tuples that have no DefId.