fn is_equal_type(src_type: &Type, target_type: &Type) -> bool {
    if src_type.to_token_stream().to_string() != target_type.to_token_stream().to_string() {
        return false;
    }

    true
}
/// Check whether two given [Type]s are of the same type.
/// If they aren't, an error is added to the src_type and the function returns `false`.
///
/// This check is rather crude, as we simply compare the token streams.
/// However, this is the only way for now, as there are no type infos at this stage.
Check whether two given [Type]s are of the same type.
If they aren't, an error is added to the src_type and the function returns `false`.

This check is rather crude, as we simply compare the token streams.
However, this is the only way for now, as there are no type infos at this stage.
Check whether two given [ Type ] s are of the same type . If they aren ' t an error is added to the src_type and the function returns ` false ` . This check is rather crude as we simply compare the token streams . However this is the only way for now as there are no type infos at this stage .
fn is_equal_type(src_type: &Type, target_type: &Type) -> bool {
    if src_type.to_token_stream().to_string() != target_type.to_token_stream().to_string() {
        return false;
    }
    true
}
fn is_equal_type ( src_type : & Type , target_type : & Type ) -> bool { if src_type . to_token_stream ( ) . to_string ( ) != target_type . to_token_stream ( ) . to_string ( ) { return false ; } true }
Check whether two given [Type]s are of the same type.
Check whether two given [ Type ] s are of the same type .
src_type
&Type
target_type
&Type