MCPcopy Create free account
hub / github.com/Rust-GPU/rust-gpu / map_generic_args

Method map_generic_args

crates/rustc_codegen_spirv/src/linker/specializer.rs:330–339  ·  view source on GitHub ↗
(self, f: impl FnMut(T) -> U)

Source from the content-addressed store, hash-verified

328 }
329
330 fn map_generic_args<T, U, GA2>(self, f: impl FnMut(T) -> U) -> Instance<GA2>
331 where
332 GA: IntoIterator<Item = T>,
333 GA2: std::iter::FromIterator<U>,
334 {
335 Instance {
336 generic_id: self.generic_id,
337 generic_args: self.generic_args.into_iter().map(f).collect(),
338 }
339 }
340
341 // FIXME(eddyb) implement `Step` for `Param` and `InferVar` instead.
342 fn display<'a, T: fmt::Display, GAI: Iterator<Item = T> + Clone>(

Callers 1

to_concreteMethod · 0.80

Calls 2

into_iterMethod · 0.80
collectMethod · 0.45

Tested by

no test coverage detected