If there were a tool that could break blocks immediately (like Create Wrench), the block would still exist when the player obtains it, the chest (if the wrench could pick it up) would drop all of its items, but still keep these items in its inventory.