fn new<U>(pins: U) -> Pins<T> where
        U: IntoIterator<Item = (u8, T)>
    {
        Pins {
            pins: pins.into_iter()
                .map(|(pin_no, pin)| (pin_no, pin))
                .collect(),
        }
    }
/// Create a new collection of pins.
Create a new collection of pins.
Create a new collection of pins .
fn new<U>(pins: U) -> Pins<T> where
        U: IntoIterator<Item = (u8, T)>
    {
        Pins {
            pins: pins.into_iter()
                .map(|(pin_no, pin)| (pin_no, pin))
                .collect(),
        }
    }
fn new < U > ( pins : U ) -> Pins < T > where U : IntoIterator < Item = ( u8 , T ) > { Pins { pins : pins . into_iter ( ) . map ( | ( pin_no , pin ) | ( pin_no , pin ) ) . collect ( ) , } }
Create a new collection of pins.
Create a new collection of pins .
pins
U
pins
U