MCPcopy Create free account
hub / github.com/Amanieu/regalloc3 / EitherIter

Enum EitherIter

src/allocation_unit.rs:109–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107 /// Returns an iterator over the units in an allocation.
108 pub(crate) fn units(self, reginfo: &impl RegInfo) -> impl Iterator<Item = AllocationUnit> + '_ {
109 enum EitherIter<A, B> {
110 A(A),
111 B(B),
112 }
113 impl<A, B> Iterator for EitherIter<A, B>
114 where
115 A: Iterator,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected