Skip to main content

underlying_type

Function underlying_type 

Source
pub fn underlying_type<'d, F>(ty: &Type, lookup: F) -> Type
where F: Fn(&str) -> Option<&'d Definition>,
Expand description

Follow newtype fields to their canonical representation. The cycle guard also makes this safe for recovery types built from invalid recursive declarations.