MCPcopy Create free account
hub / github.com/alexpusch/rust-magic-patterns / MyMap

Class MyMap

dumbing-down-iterator/src/my_map.rs:9–15  ·  view source on GitHub ↗

An iterator that applies a function to each item. This is a dumbing down of the `Map` iterator from the standard library. https://doc.rust-lang.org/std/iter/struct.Map.html F is the type of the closure that is used to map the elements. It is constrained to be of type `FnMut(Self::Item) -> B` in the MyIterator implementation

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected