Literary movements

A passage moves from a character's present sight of rain to a childhood memory and then to an unrelated-sounding phrase, with few transitions. Which technique is most likely being used?