You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, std::select::select is defined like pub fn select<A: Select>(ports: &mut [A]) -> uint but that is too strict. What if one wants to select over two ports of different types? It seems ugly to me that the alternative is to box the ports into pub fn select(ports: &mut [&Select]) but I can't think of a better alternative. This issue also applies to selecting between a Port, and a PortOne. I guess another way to work around this would be to implement Select for &Select objects.