The normal redress for breach of contract is to give the injured party what will put him in as good a position as if the contract had been performed. The normal redress for a tort is to give what will restore the injured party to as good a position as he had before the tort. The latter form of redress is, however, also allowed in the law of contracts, both as an alternative remedy for breach of contract, and also in certain cases where a contract has been partly performed by the plaintiff but where no breach of contract has been committed by the defendants. In both cases the obligation is quasi-contractual, except where restitution in specie is enforced, in which case it is equitable.