Is there a simple rule for structuring an exchange where all the taxable gain can be deferred?

Is there a simple rule for structuring an exchange where all the taxable gain can be deferred?