// Returns the Rust type for resolve/reject calls.
// If it's an interface, expect a Tracked object.
// In that case, we check if it's shared and has a custom trait.
Returns the Rust type for resolve/reject calls.
If it's an interface, expect a Tracked object.
In that case, we check if it's shared and has a custom trait.
Returns the Rust type for resolve / reject calls . If it ' s an interface expect a Tracked object . In that case we check if it ' s shared and has a custom trait .
fn rust_type_for_resolve_reject(ast: &Ast, full_type: &FullConcreteType) -> String {
    if let ConcreteType::Interface(name) = &full_type.typ {
        let info = TrackedInterfaceInfo::by_name(ast, name);
        info.type_representation()
    } else {
        rust_type(full_type)
    }
}
fn rust_type_for_resolve_reject ( ast : & Ast , full_type : & FullConcreteType ) -> String { if let ConcreteType :: Interface ( name ) = & full_type . typ { let info = TrackedInterfaceInfo :: by_name ( ast , name ) ; info . type_representation ( ) } else { rust_type ( full_type ) } }
Returns the Rust type for resolve/reject calls.
Returns the Rust type for resolve / reject calls .
ast
&Ast
full_type
&FullConcreteType