A Rust iterator is lazy: it computes the next element only when next is called. An iterator adaptor (map, filter, take, …) wraps an iterator into a new one and does no work when created; a consumer (sum, collect, count, a for loop) calls next until the end or until it has enough.
collect asks take for an element, which asks filter, which asks map until one passes; after two, take stops asking, and 320 is never mapped.