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.
The text was updated successfully, but these errors were encountered:
…r=xFrednet
remove unusued `#![feature(drain_filter)]`
The unstable feature does not appear to be used and its presence blocks work in rust-lang#104455
changelog: none
Currently,
std::select::select
is defined likepub 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 intopub fn select(ports: &mut [&Select])
but I can't think of a better alternative. This issue also applies to selecting between aPort
, and aPortOne
. I guess another way to work around this would be to implementSelect
for&Select
objects.The text was updated successfully, but these errors were encountered: