going to repeat what i said down below
Resetting the animation resets the auto so long as you're within a certain amount of time before the next auto would naturally happen. In other words, if the time it takes a champion to go through the ability/Hydra animation puts them at or past the point where they would have done another auto attack, they can do the next auto attack. So the AA > Hydra (hydra deals 100% AD directly in front, making it effectively an auto attack without counting for one) resets his animation from his auto attack, but the duration of the animation for Hydra takes up the remaining time on the invisible timer for Rengar to be allowed by the game to make another auto attack. So in the time it would have taken him to get two auto attacks, he's done two with a Hydra as a separate action between them.
The higher the attack speed of the champion, the easier it is to get resets from abilities or a Hydra. However, keep in mind that Hydra's animation also scales with attack speed. So in most cases a well timed Hydra active will ensure an animation reset, and take up just enough time to let them get to their next auto attack just as the Hydra finishes. On the other hand, if you use Hydra too late in an animation you could be wasting time. Activating it well after the damage frame has happened means you're going to use much more time doing the Hydra animation, wasting a precious half second or so that your champion could have already used another auto attack.
It's all in the timing.