pub fn as_interface<'d, F>(ty: &Type, lookup: F) -> Option<Symbol>where F: Fn(&str) -> Option<&'d Definition>,